WP_Customize_Manager::is_theme_active(): bool In this article Table of ContentsReturn Source Related Changelog Copy page View as Markdown Back to top Checks if the current theme is active. Return bool Source public function is_theme_active() { return $this->get_stylesheet() === $this->original_stylesheet; } View all references View on Trac View on GitHub Related UsesDescriptionWP_Customize_Manager::get_stylesheet()wp-includes/class-wp-customize-manager.phpRetrieves the stylesheet name of the previewed theme. Used byDescriptionWP_Customize_Manager::establish_loaded_changeset()wp-includes/class-wp-customize-manager.phpEstablishes the loaded changeset. WP_Customize_Manager::save_changeset_post()wp-includes/class-wp-customize-manager.phpSaves the post for the loaded changeset. WP_Customize_Manager::add_state_query_params()wp-includes/class-wp-customize-manager.phpAdds customize state query params to a given URL if preview is allowed. WP_Customize_Manager::customize_pane_settings()wp-includes/class-wp-customize-manager.phpPrints JavaScript settings for parent window. WP_Customize_Manager::get_document_title_template()wp-includes/class-wp-customize-manager.phpGets the template string for the Customizer pane document title. WP_Customize_Manager::unsanitized_post_values()wp-includes/class-wp-customize-manager.phpGets dirty pre-sanitized setting values in the current customized state. WP_Customize_Manager::customize_preview_settings()wp-includes/class-wp-customize-manager.phpPrints JavaScript settings for preview frame. WP_Customize_Manager::setup_theme()wp-includes/class-wp-customize-manager.phpStarts preview and customize theme. WP_Customize_Manager::start_previewing_theme()wp-includes/class-wp-customize-manager.phpIf 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.phpStops previewing the selected theme. Show 5 moreShow less Changelog VersionDescription3.4.0Introduced. User Contributed Notes You must log in before being able to contribute a note or feedback.
User Contributed Notes
You must log in before being able to contribute a note or feedback.