wpseek.com
WordPress开发者和主题制作者的搜索引擎



is_customize_preview › WordPress Function

Since4.0.0
已弃用n/a
is_customize_preview ( 没有参数 )
返回:
  • (bool) True if the site is being previewed in the Customizer, false otherwise.
定义在:
文档:

Whether the site is being previewed in the Customizer.



源码

function is_customize_preview() {
	global $wp_customize;

	return ( $wp_customize instanceof WP_Customize_Manager ) && $wp_customize->is_preview();
}