template filter-hook . WP 1.5.0
Filters the name of the current theme.
Usage
add_filter( 'template', 'filter_function_name_6466' ); function filter_function_name_6466( $template ){ // filter... return $template; }
- $template(string)
- Current theme's directory name.
Changelog
Since 1.5.0 | Introduced. |
Where the hook is called
template
wp-includes/theme.php 315
return apply_filters( 'template', get_option( 'template' ) );
Where in WP core the hook is used WordPress
wp-includes/theme.php 676
add_filter( 'template', array( $this, 'get_template' ) );
wp-includes/theme.php 714
remove_filter( 'template', array( $this, 'get_template' ) );