Changeset 38385
- Timestamp:
- 08/26/2016 09:02:08 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/template.php
r37518 r38385 27 27 $templates = array("{$type}.php"); 28 28 29 /** 30 * Filter the list of template filenames that are searched for when retrieving a template to use. 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 * 'embed', home', 'front_page', 'page', 'paged', 'search', 'single', 'singular', and 'attachment'. 36 * 37 * @since 4.7.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 29 43 $template = locate_template( $templates ); 30 44 … … 37 51 * 38 52 * Possible values for `$type` include: 'index', '404', 'archive', 'author', 'category', 'tag', 'taxonomy', 'date', 39 * ' home', 'front_page', 'page', 'paged', 'search', 'single', 'singular', and 'attachment'.53 * 'embed', home', 'front_page', 'page', 'paged', 'search', 'single', 'singular', and 'attachment'. 40 54 * 41 55 * @since 1.5.0
Note: See TracChangeset
for help on using the changeset viewer.