is_customize_preview()
最后更新于:2021-11-27 08:42:54
is_customize_preview()Whether the site is being previewed in the Customizer.
响应
(bool) True if the site is being previewed in the Customizer, false otherwise.
源文件
文件: gc-includes/theme.php
function is_customize_preview() {
global $gc_customize;
return ( $gc_customize instanceof GC_Customize_Manager ) && $gc_customize->is_preview();
}