Filters the path of the current template before including it.
Parameters
$template
string- The path of the template to include.
Source
$template = apply_filters( 'template_include', $template );
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |
Filters the path of the current template before including it.
$template
string$template = apply_filters( 'template_include', $template );
Version | Description |
---|---|
3.0.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
This example includes a new template on a page called ‘portfolio’ if the new template file was found.