WP_Theme::get_template(): string

In this article

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

Description

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

Return

string Template

Source

public function get_template() {
	return $this->template;
}

Changelog

VersionDescription
3.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.