On this page
WP_Customize_Manager::is_theme_active(): bool
Checks if the current theme is active.
Return
bool
Source
File: wp-includes/class-wp-customize-manager.php. View all references
public function is_theme_active() {
return $this->get_stylesheet() === $this->original_stylesheet;
}
Related
Uses
| Uses | Description |
|---|---|
| WP_Customize_Manager::get_stylesheet() wp-includes/class-wp-customize-manager.php | Retrieves the stylesheet name of the previewed theme. |
Used By
| Used By | Description |
|---|---|
| WP_Customize_Manager::establish_loaded_changeset() wp-includes/class-wp-customize-manager.php | Establishes the loaded changeset. |
| WP_Customize_Manager::save_changeset_post() wp-includes/class-wp-customize-manager.php | Saves the post for the loaded changeset. |
| WP_Customize_Manager::add_state_query_params() wp-includes/class-wp-customize-manager.php | Adds customize state query params to a given URL if preview is allowed. |
| WP_Customize_Manager::customize_pane_settings() wp-includes/class-wp-customize-manager.php | Prints JavaScript settings for parent window. |
| WP_Customize_Manager::get_document_title_template() wp-includes/class-wp-customize-manager.php | Gets the template string for the Customizer pane document title. |
| WP_Customize_Manager::unsanitized_post_values() wp-includes/class-wp-customize-manager.php | Gets dirty pre-sanitized setting values in the current customized state. |
| WP_Customize_Manager::customize_preview_settings() wp-includes/class-wp-customize-manager.php | Prints JavaScript settings for preview frame. |
| WP_Customize_Manager::setup_theme() wp-includes/class-wp-customize-manager.php | Starts preview and customize theme. |
| WP_Customize_Manager::start_previewing_theme() wp-includes/class-wp-customize-manager.php | If the theme to be previewed isn’t the active theme, add filter callbacks to swap it out at runtime. |
| WP_Customize_Manager::stop_previewing_theme() wp-includes/class-wp-customize-manager.php | Stops previewing the selected theme. |
Changelog
| Version | Description |
|---|---|
| 3.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_manager/is_theme_active