WP_Customize_Manager::get_template_root() WordPress Method
The WP_Customize_Manager::get_template_root() method is used to get the absolute path to the directory where the customizer templates are located. This is useful for determining where to store your own custom templates for the customizer.
WP_Customize_Manager::get_template_root() #
Retrieves the template root of the previewed theme.
Return
(string) Theme root.
Source
File: wp-includes/class-wp-customize-manager.php
public function get_template_root() { return get_raw_theme_root( $this->get_template(), true ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |