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

		}

		return $theme_root . '/' . $this->template;
	}

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

Advertisement

Changelog Changelog

Changelog
Version Description
3.4.0 Introduced.

Advertisement

Leave a Reply