WP_Customize_Manager::is_theme_active
Checks if the current theme is active.
Method of the class: WP_Customize_Manager{}
No Hooks.
Returns
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() WP Customize Manager::is theme active code WP 6.9
public function is_theme_active() {
return $this->get_stylesheet() === $this->original_stylesheet;
}