| 29 | /** |
| 30 | * Filter the list of templates that should be passed to locate_template(). |
| 31 | * |
| 32 | * The last element in the array should always be the fallback template for this query type. |
| 33 | * |
| 34 | * Possible values for `$type` include: 'index', '404', 'archive', 'author', 'category', 'tag', 'taxonomy', 'date', |
| 35 | * 'home', 'front_page', 'page', 'paged', 'search', 'single', 'singular', and 'attachment'. |
| 36 | * |
| 37 | * @since 4.4.0 |
| 38 | * |
| 39 | * @param array $templates A list of template candidates, in descending order of priority. |
| 40 | */ |
| 41 | $templates = apply_filters( "{$type}_template_hierarchy", $templates ); |
| 42 | |
| 52 | * Possible values for `$type` include: 'index', '404', 'archive', 'author', 'category', 'tag', 'taxonomy', 'date', |
| 53 | * 'home', 'front_page', 'page', 'paged', 'search', 'single', 'singular', and 'attachment'. |
| 54 | * |