WP_Customize_Manager::theme()publicWP 3.4.0

Gets the theme being customized.

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

No Hooks.

Return

WP_Theme.

Usage

$WP_Customize_Manager = new WP_Customize_Manager();
$WP_Customize_Manager->theme();

Changelog

Since 3.4.0 Introduced.

Code of WP_Customize_Manager::theme() WP 6.1.1

public function theme() {
	if ( ! $this->theme ) {
		$this->theme = wp_get_theme();
	}
	return $this->theme;
}