W3cubDocs

/WordPress

WP_Theme::get_stylesheet(): string

Returns the directory name of the theme’s “stylesheet” files, inside the theme root.

Description

In the case of a child theme, this is directory name of the child theme.
Otherwise, get_stylesheet() is the same as get_template() .

Return

string Stylesheet

Source

public function get_stylesheet() {
	return $this->stylesheet;
}

Changelog

Version Description
3.4.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_theme/get_stylesheet