get_front_page_template()
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
get_front_page_template(): string
Описание
Иерархия шаблонов и путь к шаблону могут быть отфильтрованы через динамические хуки '$type_template_hierarchy' и '$type_template', где $type равно 'frontpage'.
См. alsoget_query_template()
Оригинал (английский)
The template hierarchy and template path are filterable via the ‘$type_template_hierarchy’ and ‘$type_template’ dynamic hooks, where $type is ‘frontpage’.
Возвращаемое значение
string
Исходный код
wp-includes/template.php:417
function get_front_page_template() {
$templates = array( 'front-page.php' );
return get_query_template( 'frontpage', $templates );
}
История изменений
| Версия | Описание |
|---|---|
| 3.0.0 | Introduced. |

