is_child_theme()
Whether a child theme is in use.
Description Description
Return Return
(bool) true if a child theme is in use, false otherwise.
Source Source
File: wp-includes/theme.php
function is_child_theme() {
return ( TEMPLATEPATH !== STYLESHEETPATH );
}
Expand full source code Collapse full source code View on Trac
Changelog Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
WARNING: This function uses the
TEMPLATEPATHandSTYLESHEETPATHconstants internally. If calling from a plugin, such as during plugin activation, there’s a chance these will be undefined. It is better to use: