函数原型
is_child_theme(): bool
函数描述
Whether a child theme is in use.
是否弃用
未弃用
函数参数
无
函数返回值
bool True if a child theme is in use, false otherwise.
函数位置
File: wp-includes/theme.php.
函数源码
function is_child_theme() {
return ( TEMPLATEPATH !== STYLESHEETPATH );
}
源码链接
变更日志
Changelog| Version | Description |
|---|
| 3.0.0 | Introduced. |