WP_Theme::get_stylesheet

Advertisement

Summery Summery

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

Syntax Syntax

WP_Theme::get_stylesheet()

Description 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 Return

(string) Stylesheet

Source Source

File: wp-includes/class-wp-theme.php

	 * The directory name of the theme's "template" files, inside the theme root.
	 *
	 * In the case of a child theme, this is the directory name of the parent theme.

Advertisement

Changelog Changelog

Changelog
Version Description
3.4.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.