WordPress at Your Fingertips
function is not described

WP_Customize_Manager::is_preview() public WP 3.4.0

Is it a theme preview?

{} It's a 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.

Code of WP_Customize_Manager::is_preview() WP 5.8.2

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