WordPress at Your Fingertips
function is not described

WP_Theme::get_template() public WP 3.4.0

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().

{} It's a method of the class: WP_Theme{}

No Hooks.


String. Template


$WP_Theme = new WP_Theme();


Since 3.4.0 Introduced.

Code of WP_Theme::get_template() WP 5.8

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