jetpack_is_customize_preview

Whether the site is being previewed in the Customizer.

Description

jetpack_is_customize_preview(); 

Duplicate of core function until 4.0 is released.


Usage

  1. if ( !function_exists( 'jetpack_is_customize_preview' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/theme-tools/site-logo/inc/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = jetpack_is_customize_preview(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/modules/theme-tools/site-logo/inc/functions.php  
  1. function jetpack_is_customize_preview() { 
  2. global $wp_customize; 
  3.  
  4. return is_a( $wp_customize, 'WP_Customize_Manager' ) && $wp_customize->is_preview();