WP_Customize_Manager::current_theme() WordPress Method
The WP_Customize_Manager::current_theme() method is used to get the current theme object.
WP_Customize_Manager::current_theme( mixed $current_theme ) #
Filters the active theme and return the name of the previewed theme.
Parameters
- $current_theme
(mixed)(Required)@internal Parameter is not used
Return
(string) Theme name.
Source
File: wp-includes/class-wp-customize-manager.php
public function current_theme( $current_theme ) {
return $this->theme()->display( 'Name' );
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 3.4.0 | Introduced. |