WP_Customize_Manager::get_template_root()publicWP 3.4.0

Retrieves the template root of the previewed theme.

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

No Hooks.

Return

String. Theme root.

Usage

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

Changelog

Since 3.4.0 Introduced.

Code of WP_Customize_Manager::get_template_root() WP 6.1.1

public function get_template_root() {
	return get_raw_theme_root( $this->get_template(), true );
}