theme_root
Filters the absolute path to the themes directory.
Usage
add_filter( 'theme_root', 'wp_kama_theme_root_filter' ); /** * Function for `theme_root` filter-hook. * * @param string $theme_root Absolute path to themes directory. * * @return string */ function wp_kama_theme_root_filter( $theme_root ){ // filter... return $theme_root; }
- $theme_root(string)
- Absolute path to themes directory.
Changelog
Since 1.5.0 | Introduced. |
Where the hook is called
theme_root
wp-includes/theme.php 629
return apply_filters( 'theme_root', $theme_root );