Whether a child theme is in use.
Source
function is_child_theme() {
global $wp_stylesheet_path, $wp_template_path;
return $wp_stylesheet_path !== $wp_template_path;
}
Whether a child theme is in use.
function is_child_theme() {
global $wp_stylesheet_path, $wp_template_path;
return $wp_stylesheet_path !== $wp_template_path;
}
You must log in before being able to contribute a note or feedback.
WARNING: This function uses the
TEMPLATEPATH
andSTYLESHEETPATH
constants internally. If calling from a plugin, such as during plugin activation, there’s a chance these will be undefined. It is better to use: