WP_Theme::get_template_directory

Advertisement

Summery Summery

Returns the absolute path to the directory of a theme’s “template” files.

Syntax Syntax

WP_Theme::get_template_directory()

Description Description

In the case of a child theme, this is the absolute path to the directory of the parent theme’s files.

Return Return

(string) Absolute path of the template directory.

Source Source

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


			

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.