WP_Theme::get_template

SummerySummery

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

Syntax

WP_Theme::get_template()

DescriptionDescription

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

ReturnReturn

(string) Template

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
3.4.0 Introduced.
Scroll to Top