WordPress at a glance
filter is not described

template_directory filter-hook . WP 1.5.0

Filters the current theme directory path.


add_filter( 'template_directory', 'filter_function_name_8188', 10, 3 );
function filter_function_name_8188( $template_dir, $template, $theme_root ){
	// filter...

	return $template_dir;
The URI of the current theme directory.
Directory name of the current theme.
Absolute path to the themes directory.

Where the hook is called

wp-includes/theme.php 334
return apply_filters( 'template_directory', $template_dir, $template, $theme_root );

Where the hook is used (in WP core)

Использование не найдено.