Gets the theme being customized.
Source
public function theme() {
if ( ! $this->theme ) {
$this->theme = wp_get_theme();
}
return $this->theme;
}
Changelog
| Version | Description |
|---|---|
| 3.4.0 | Introduced. |
| CARVIEW |
Gets the theme being customized.
public function theme() {
if ( ! $this->theme ) {
$this->theme = wp_get_theme();
}
return $this->theme;
}
| Uses | Description |
|---|---|
wp_get_theme()wp-includes/theme.php | Gets a WP_Theme object for a theme. |
| Used by | Description |
|---|---|
WP_Customize_Manager::register_controls()wp-includes/class-wp-customize-manager.php | Registers some default controls. |
WP_Customize_Manager::get_template()wp-includes/class-wp-customize-manager.php | Retrieves the template name of the previewed theme. |
WP_Customize_Manager::get_stylesheet()wp-includes/class-wp-customize-manager.php | Retrieves the stylesheet name of the previewed theme. |
WP_Customize_Manager::current_theme()wp-includes/class-wp-customize-manager.php | Filters the active theme and return the name of the previewed theme. |
WP_Customize_Manager::setup_theme()wp-includes/class-wp-customize-manager.php | Starts preview and customize theme. |
| Version | Description |
|---|---|
| 3.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.