WP_Customize_Manager::is_preview()publicWP 3.4.0

Determines whether it is a theme preview or not.

Метод класса: 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() WP 6.1.1

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