Un motore di ricerca WordPress per sviluppatori e autori di temi



is_customize_preview ›

Da4.0.0
Deprecaton/a
is_customize_preview ( Nessun parametro )
Ritorna:
  • (bool) True if the site is being previewed in the Customizer, false otherwise.
Definito a:
Codex:

Whether the site is being previewed in the Customizer.



Sorgenti

function is_customize_preview() {
	global $wp_customize;

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