WP_Theme::get_template()
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
File: wp-includes/class-wp-theme.php
public function get_template() {
return $this->template;
} Changelog
| Version | Description |
|---|---|
| 3.4.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_theme/get_template