WP_Customize_Manager::get_template_root()
Retrieves the template root of the previewed theme.
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. |
WP_Customize_Manager::get_template_root() WP Customize Manager::get template root code WP 6.6.2
public function get_template_root() { return get_raw_theme_root( $this->get_template(), true ); }