检索在检索要使用的模板时搜索的模板文件名列表。
原型
apply_filters( "{$type}_template_hierarchy", array $templates )
描述
数组中的最后一个元素应始终是此查询类型的后备模板。
参数
$templates
(array)
模板候选列表,按优先级降序排列。
源文件
路径:wp-includes/template.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/type_template_hierarchy/