stylesheet_directory_uri
Filters the stylesheet directory URI.
Использование
add_filter( 'stylesheet_directory_uri', 'wp_kama_stylesheet_directory_uri_filter', 10, 3 ); /** * Function for `stylesheet_directory_uri` filter-hook. * * @param string $stylesheet_dir_uri Stylesheet directory URI. * @param string $stylesheet Name of the activated theme's directory. * @param string $theme_root_uri Themes root URI. * * @return string */ function wp_kama_stylesheet_directory_uri_filter( $stylesheet_dir_uri, $stylesheet, $theme_root_uri ){ // filter... return $stylesheet_dir_uri; }
- $stylesheet_dir_uri(строка)
- Stylesheet directory URI.
- $stylesheet(строка)
- Name of the activated theme's directory.
- $theme_root_uri(строка)
- Themes root URI.
Список изменений
С версии 1.5.0 | Введена. |
Где вызывается хук
stylesheet_directory_uri
wp-includes/theme.php 239
return apply_filters( 'stylesheet_directory_uri', $stylesheet_dir_uri, $stylesheet, $theme_root_uri );