Retrieves the template root of the previewed theme.
Source
public function get_template_root() {
return get_raw_theme_root( $this->get_template(), true );
}
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |
CARVIEW |
Retrieves the template root of the previewed theme.
public function get_template_root() {
return get_raw_theme_root( $this->get_template(), true );
}
Uses | Description |
---|---|
WP_Customize_Manager::get_template()wp-includes/class-wp-customize-manager.php | Retrieves the template name of the previewed theme. |
get_raw_theme_root()wp-includes/theme.php | Gets the raw theme root relative to the content directory with no filters applied. |
Version | Description |
---|---|
3.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.