WordPress at Your Fingertips
function is not described

WP_Customize_Manager::current_theme() public WP 3.4.0

Filters the current theme and return the name of the previewed theme.

{} It's a method of the class: WP_Customize_Manager{}

No Hooks.

Return

String. Theme name.

Usage

$WP_Customize_Manager = new WP_Customize_Manager();
$WP_Customize_Manager->current_theme( $current_theme );
$current_theme(mixed) (required)
{@internal Parameter is not used}

Changelog

Since 3.4.0 Introduced.

Code of WP_Customize_Manager::current_theme() WP 5.8.1

public function current_theme( $current_theme ) {
	return $this->theme()->display( 'Name' );
}