Title: WP_Customize_Manager::get_stylesheet_root
Published: April 25, 2014
Last modified: February 24, 2026

---

# WP_Customize_Manager::get_stylesheet_root(): string

## In this article

 * [Return](https://developer.wordpress.org/reference/classes/wp_customize_manager/get_stylesheet_root/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/classes/wp_customize_manager/get_stylesheet_root/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/wp_customize_manager/get_stylesheet_root/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_customize_manager/get_stylesheet_root/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_customize_manager/get_stylesheet_root/?output_format=md#wp--skip-link--target)

Retrieves the stylesheet root of the previewed theme.

## 󠀁[Return](https://developer.wordpress.org/reference/classes/wp_customize_manager/get_stylesheet_root/?output_format=md#return)󠁿

 string Theme root.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_customize_manager/get_stylesheet_root/?output_format=md#source)󠁿

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

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-customize-manager.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/class-wp-customize-manager.php#L2310)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-customize-manager.php#L2310-L2312)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/wp_customize_manager/get_stylesheet_root/?output_format=md#related)󠁿

| Uses | Description | 
| [WP_Customize_Manager::get_stylesheet()](https://developer.wordpress.org/reference/classes/wp_customize_manager/get_stylesheet/)`wp-includes/class-wp-customize-manager.php` |

Retrieves the stylesheet name of the previewed theme.

  | 
| [get_raw_theme_root()](https://developer.wordpress.org/reference/functions/get_raw_theme_root/)`wp-includes/theme.php` |

Gets the raw theme root relative to the content directory with no filters applied.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_customize_manager/get_stylesheet_root/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.4.0](https://developer.wordpress.org/reference/since/3.4.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_customize_manager%2Fget_stylesheet_root%2F)
before being able to contribute a note or feedback.