is_customize_preview()
is_customize_preview()
是否正在自定义项中预览网站。
Whether the site is being previewed in the Customizer.
返回(Return)
(bool)如果正在自定义项中预览网站,则为True,否则为false。
源码(Source)
is_customize_preview() 函数的代码位于 wp-includes/theme.php.
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.0.0 | wp-includes/theme.php:3284 | 11 | 0 |
is_customize_preview() 为WP2原创文章,链接:https://www.wp2.cn/functions/is_customize_preview/