apply_filters( 'template_directory', string $template_dir, string $template, string $theme_root )

Filters the active theme directory path.


Parameters

$template_dir string
The path of the active theme directory.
$template string
Directory name of the active theme.
$theme_root string
Absolute path to the themes directory.

Top ↑

Source

File: wp-includes/theme.php. View all references

$template_dir = apply_filters( 'template_directory', $template_dir, $template, $theme_root );


Top ↑

Changelog

Changelog
Version Description
1.5.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.