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

