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

