WP_Customize_Manager::is_theme_active()
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() WP Customize Manager::is theme active code WP 6.7.2
public function is_theme_active() { return $this->get_stylesheet() === $this->original_stylesheet; }