WP_Theme::get_template()
Returns the directory name of the theme's "template" files, inside the theme root.
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().
Метод класса: WP_Theme{}
Хуков нет.
Возвращает
Строку
. Template
Использование
$WP_Theme = new WP_Theme(); $WP_Theme->get_template();
Список изменений
С версии 3.4.0 | Введена. |
Код WP_Theme::get_template() WP Theme::get template WP 6.4.1
public function get_template() { return $this->template; }