stylesheet_directory filter-hook . WP 1.5.0
Filters the stylesheet directory path for current theme.
Usage
add_filter( 'stylesheet_directory', 'filter_function_name_2409', 10, 3 ); function filter_function_name_2409( $stylesheet_dir, $stylesheet, $theme_root ){ // filter... return $stylesheet_dir; }
- $stylesheet_dir(string)
- Absolute path to the current theme.
- $stylesheet(string)
- Directory name of the current theme.
- $theme_root(string)
- Absolute path to themes directory.
Changelog
Since 1.5.0 | Introduced. |
Where the hook is called
stylesheet_directory
wp-includes/theme.php 205
return apply_filters( 'stylesheet_directory', $stylesheet_dir, $stylesheet, $theme_root );