WordPress at a glance
filter is not described

template filter-hook . WP 1.5.0

Filters the name of the current theme.

Usage

add_filter( 'template', 'filter_function_name_1389' );
function filter_function_name_1389( $template ){
	// filter...

	return $template;
}
$template(string)
Current theme's directory name.

Список изменений

С версии 1.5.0 Введена.

Где вызывается хук

get_template()
template
wp-includes/theme.php 315
return apply_filters( 'template', get_option( 'template' ) );

Где используется хук в ядре WordPress

wp-includes/class-wp-customize-manager.php 676
add_filter( 'template', array( $this, 'get_template' ) );
wp-includes/class-wp-customize-manager.php 714
remove_filter( 'template', array( $this, 'get_template' ) );