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
TEMPLATEPATHandSTYLESHEETPATHconstans internally. If calling from a pluguin, such as during pluguin activation, there’s a chance these will be undefined. It is better to use: