theme_root
Filters the absolute path to the themes directory.
Использование
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(строка)
- Absolute path to themes directory.
Список изменений
С версии 1.5.0 | Введена. |
Где вызывается хук
theme_root
wp-includes/theme.php 629
return apply_filters( 'theme_root', $theme_root );