is_customize_preview()判断当前是否为预览模式的框架内

目录

描述

This Conditional Tag checks if the site is embedded in the Customizer preview iframe. This is a boolean function that will return true if the site is previewed in the Customizer and false if it's not.

is_customize_preview() 描述

用法

<?php is_customize_preview(); ?>

is_customize_preview() 用法

参数

This tag does not accept any parameters.

is_customize_preview() 参数

返回值

(boolean) 

True if the site is being previewed in the Customizer, false otherwise.

is_customize_preview() 返回值

示例

is_customize_preview() 示例

历史

添加于 版本: 4.0.0

is_customize_preview() 历史

源文件

is_customize_preview() 函数的代码位于 wp-includes/theme.php.

is_customize_preview() 源文件

相关