wpseek.com
WordPress开发者和主题制作者的搜索引擎
theme_{$post_type}_templates › WordPress过滤钩子
Since4.7.0
已弃用n/a
› apply_filters( "theme_{$post_type}_templates", $post_templates, $this, $post, $post_type )
参数: (4) |
|
定义在: |
|
文档: |
Filters list of page templates for a theme.
The dynamic portion of the hook name, $post_type
, refers to the post type.
Possible hook names include:
theme_post_templates
theme_page_templates
theme_attachment_templates
Related Functions: get_post_type_archive_template, get_post_type_labels, get_page_templates, get_date_template, get_page_template, get_paged_template