| 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 ); |