WP_Customize_Manager::get_stylesheet_root() WordPress Method
The WP_Customize_Manager::get_stylesheet_root() method is used to get the absolute path to the directory where the active theme's stylesheet is located. This is useful for determining the location of a file relative to the theme's stylesheet.
WP_Customize_Manager::get_stylesheet_root() #
Retrieves the stylesheet root of the previewed theme.
Return
(string) Theme root.
Source
File: wp-includes/class-wp-customize-manager.php
public function get_stylesheet_root() { return get_raw_theme_root( $this->get_stylesheet(), true ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |