A WordPress-centric search engine for devs and theme authors



is_customize_preview ›

Since4.0.0
Deprecatedn/a
is_customize_preview ( No parameters )
Returns:
  • (bool) True if the site is being previewed in the Customizer, false otherwise.
Defined at:
Codex:

Whether the site is being previewed in the Customizer.



Source

function is_customize_preview() {
	global $wp_customize;

	return ( $wp_customize instanceof WP_Customize_Manager ) && $wp_customize->is_preview();
}