Possible Duplicate:
How to execute conditional script when on new customize.php (Theme Customize) screen
是否有条件标记或任何其他方法可用于检查是否正在自定义主题?
我想在定制主题时加入一些额外的样式表。
所以我想做点像:
if ( theme-customizer-is-active ) {
// load some extra styles
}
Possible Duplicate:
How to execute conditional script when on new customize.php (Theme Customize) screen
是否有条件标记或任何其他方法可用于检查是否正在自定义主题?
我想在定制主题时加入一些额外的样式表。
所以我想做点像:
if ( theme-customizer-is-active ) {
// load some extra styles
}
在这个问题上:How to execute conditional script when on new customize.php (Theme Customize) screen
global $wp_customize;
if ( isset( $wp_customize ) ) {
// do stuff
}