WP_Customize_Manager::current_theme( mixed $current_theme )
Filters the current 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' ); }
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_manager/current_theme