public_html/wp-content/themes/LocalTwo/inc/extras.php
/**
 * ============================================================================
 * Check if the current view is rendering in the Customizer preview pane.
 * ============================================================================
 *
 * @return bool    True if in the preview pane.
 */
Check if the current view is rendering in the Customizer preview pane.

@return bool    True if in the preview pane.
Check if the current view is rendering in the Customizer preview pane . @return bool True if in the preview pane .
function divertheme_is_preview() {
	global $wp_customize;
	return ( isset( $wp_customize ) && $wp_customize->is_preview() );
}
function divertheme_is_preview ( ) { global $ wp_customize ; return ( isset ( $ wp_customize ) && $ wp_customize -> is_preview ( ) ) ; }
Check if the current view is rendering in the Customizer preview pane.
Check if the current view is rendering in the Customizer preview pane .