theme_root WordPress Filter Hook
The theme_root hook is used to change the location of the theme directory. This is useful if you want to use a custom theme or if you want to change the location of the theme directory for performance reasons.
apply_filters( 'theme_root', string $theme_root ) #
Filters the absolute path to the themes directory.
Parameters
- $theme_root
(string)Absolute path to themes directory.
Source
File: wp-includes/theme.php
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |