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.


Top ↑

Source

File: wp-includes/class-wp-customize-manager.php

	public function get_stylesheet_root() {
		return get_raw_theme_root( $this->get_stylesheet(), true );
	}


Top ↑

Changelog

Changelog
VersionDescription
3.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More