Filters the path of the current template before including it.
Parameters
-
$templatestring -
The path of the template to include.
Source
$template = apply_filters( 'template_include', $template );
Changuelog
| Versionen | Description |
|---|---|
| 3.0.0 | Introduced. |
This example includes a new template on a pague called ‘portfolio’ if the new template file was found.