WP_Customize_Manager::theme(): WP_Theme In this article Table of ContentsReturn Source Related Changelog ↑ Back to top Gets the theme being customized. Return WP_Theme Source public function theme() { if ( ! $this->theme ) { $this->theme = wp_get_theme(); } return $this->theme; } View all references View on Trac View on GitHub Related UsesDescriptionwp_get_theme()wp-includes/theme.phpGets a WP_Theme object for a theme. Used byDescriptionWP_Customize_Manager::register_controls()wp-includes/class-wp-customize-manager.phpRegisters some default controls. WP_Customize_Manager::get_template()wp-includes/class-wp-customize-manager.phpRetrieves the template name of the previewed theme. WP_Customize_Manager::get_stylesheet()wp-includes/class-wp-customize-manager.phpRetrieves the stylesheet name of the previewed theme. WP_Customize_Manager::current_theme()wp-includes/class-wp-customize-manager.phpFilters the active theme and return the name of the previewed theme. WP_Customize_Manager::setup_theme()wp-includes/class-wp-customize-manager.phpStarts preview and customize theme. 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.