WP_Customize_Manager::theme() WordPress Method
The WP_Customize_Manager::theme() method is used to retrieve the current theme object. This can be used to get information about the current theme, such as its name, version, and author.
WP_Customize_Manager::theme() #
Gets the theme being customized.
Return
(WP_Theme)
Source
File: wp-includes/class-wp-customize-manager.php
public function theme() { if ( ! $this->theme ) { $this->theme = wp_get_theme(); } return $this->theme; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |