WP_Theme::get_template

Advertisement

Summery Summery

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

Syntax Syntax

WP_Theme::get_template()

Description 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 Return

(string) Template

Source Source

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

	 * Returns the absolute path to the directory of a theme's "stylesheet" files.
	 *
	 * In the case of a child theme, this is the absolute path to the directory

Advertisement

Changelog Changelog

Changelog
Version Description
3.4.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.