WP_Customize_Manager::is_theme_active()publicWP 3.4.0

Checks if the current theme is active.

Method of the class: WP_Customize_Manager{}

No Hooks.

Return

true|false.

Usage

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

Changelog

Since 3.4.0 Introduced.

WP_Customize_Manager::is_theme_active() code WP 6.5.2

public function is_theme_active() {
	return $this->get_stylesheet() === $this->original_stylesheet;
}