WP_Customize_Manager::is_preview()publicWP 3.4.0

Determines whether it is a theme preview or not.

Method of the class: WP_Customize_Manager{}

No Hooks.

Return

true|false. True if it's a preview, false if not.

Usage

$WP_Customize_Manager = new WP_Customize_Manager();
$WP_Customize_Manager->is_preview();

Changelog

Since 3.4.0 Introduced.

WP_Customize_Manager::is_preview() code WP 6.5.2

public function is_preview() {
	return (bool) $this->previewing;
}