is_customize_preview()
Whether the site is being previewed in the Customizer.
Description Description
Return Return
(bool) True if the site is being previewed in the Customizer, false otherwise.
Source Source
File: wp-includes/theme.php
function is_customize_preview() {
global $wp_customize;
return ( $wp_customize instanceof WP_Customize_Manager ) && $wp_customize->is_preview();
}
Expand full source code Collapse full source code View on Trac
Changelog Changelog
| Version | Description |
|---|---|
| 4.0.0 | Introduced. |