Changeset 25703
- Timestamp:
- 10/06/2013 07:00:05 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/template.php
r25386 r25703 27 27 $templates = array("{$type}.php"); 28 28 29 return apply_filters( "{$type}_template", locate_template( $templates ) ); 29 $template = locate_template( $templates ); 30 /** 31 * Filter the path of the queried template by type. 32 * 33 * The dynamic portion of the hook name, $type, refers to the filename 34 * -- minus the extension -- of the file to load. This hook also applies 35 * to various types of files loaded as part of the Template Hierarchy. 36 * 37 * @since 1.5.2 38 * 39 * @param string $template Path to the template. @see locate_template() 40 */ 41 return apply_filters( "{$type}_template", $template ); 30 42 } 31 43
Note: See TracChangeset
for help on using the changeset viewer.