is_child_theme() WordPress Function
is_child_theme() is a function that checks whether the current theme is a child theme or not.
is_child_theme() #
Whether a child theme is in use.
Return
(bool) True if a child theme is in use, false otherwise.
Source
File: wp-includes/theme.php
function is_child_theme() {
return ( TEMPLATEPATH !== STYLESHEETPATH );
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |