template_include filter-hook . WP 3.0.0
Filters the path of the current template before including it.
Usage
add_filter( 'template_include', 'filter_function_name_6334' ); function filter_function_name_6334( $template ){ // filter... return $template; }
- $template(string)
- The path of the template to include.
Changelog
Since 3.0.0 | Introduced. |
Where the hook is called
In file: /wp-includes/template-loader.php
wp-includes/template-loader.php 104
$template = apply_filters( 'template_include', $template );