stylesheet filter-hook . WP 1.5.0
Filters the name of current stylesheet.
Usage
add_filter( 'stylesheet', 'filter_function_name_1148' ); function filter_function_name_1148( $stylesheet ){ // filter... return $stylesheet; }
- $stylesheet(string)
- Name of the current stylesheet.
Changelog
Since 1.5.0 | Introduced. |
Where the hook is called
stylesheet
wp-includes/theme.php 181
return apply_filters( 'stylesheet', get_option( 'stylesheet' ) );
Where in WP core the hook is used WordPress
wp-includes/theme.php 677
add_filter( 'stylesheet', array( $this, 'get_stylesheet' ) );
wp-includes/theme.php 715
remove_filter( 'stylesheet', array( $this, 'get_stylesheet' ) );