WP_Theme::get_stylesheet()publicWP 3.4.0

Returns the directory name of the theme's "stylesheet" files, inside the theme root.

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

Метод класса: WP_Theme{}

Хуков нет.

Возвращает

Строку. Stylesheet

Использование

$WP_Theme = new WP_Theme();
$WP_Theme->get_stylesheet();

Список изменений

С версии 3.4.0 Введена.

Код WP_Theme::get_stylesheet() WP 6.5.2

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