wpseek.com
WordPress开发者和主题制作者的搜索引擎
{$type}_template › WordPress过滤钩子
Since4.8.0
已弃用n/a
› apply_filters( "{$type}_template", $template, $type, $templates )
| 参数: (3) |
|
| 定义在: |
|
| 文档: |
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`Related Functions: get_template, locate_template, is_page_template, get_404_template, get_tag_template, load_template
Related Hooks: theme_templates, template, comments_template, get_template_part, type-_template_hierarchy