WP_Theme::get_template()publicWP 3.4.0

Returns 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. Otherwise, the get_template() is the same as get_stylesheet().

Method of the class: WP_Theme{}

No Hooks.

Return

String. Template

Usage

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

Changelog

Since 3.4.0 Introduced.

WP_Theme::get_template() code WP 6.5.2

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