函数原型
is_customize_preview(): bool
函数描述
Whether the site is being previewed in the Customizer.
是否弃用
未弃用
函数参数
无
函数返回值
bool True if the site is being previewed in the Customizer, false otherwise.
函数位置
File: wp-includes/theme.php.
函数源码
function is_customize_preview() {
global $wp_customize;
return ( $wp_customize instanceof WP_Customize_Manager ) && $wp_customize->is_preview();
}
源码链接
变更日志
| Version | Description |
|---|---|
| 4.0.0 | Introduced. |

