wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi
{$type}_template › WordPress Filter Hooks
Da4.8.0
Deprecaton/a
› apply_filters( "{$type}_template", $template, $type, $templates )
Parametri: (3) |
|
Definito a: |
|
Codex: |
Filters the path of the queried template by type.
The dynamic portion of the hook name, $type
, refers to the filename -- minus the file
extension and any non-alphanumeric characters delimiting words -- of the file to load.
This hook also applies to various types of files loaded as part of the Template Hierarchy.
Possible hook names include:
404_template
archive_template
attachment_template
author_template
category_template
date_template
embed_template
frontpage_template
home_template
index_template
page_template
paged_template
privacypolicy_template
search_template
single_template
singular_template
tag_template
taxonomy_template
Funzioni correlate: get_page_template, get_template, locate_template, get_page_templates, is_page_template, get_home_template
Hooks correlati: theme_templates, comments_template, type_template_hierarchy, get_template_part, get_block_template