stylesheet filter-hook . WP 1.5.0
Filters the name of current stylesheet.
Usage
add_filter( 'stylesheet', 'filter_function_name_2283' ); function filter_function_name_2283( $stylesheet ){ // filter... return $stylesheet; }
- $stylesheet(string)
- Name of the current stylesheet.
Where the hook is called
stylesheet
wp-includes/theme.php 160
return apply_filters( 'stylesheet', get_option( 'stylesheet' ) );
Where the hook is used (in WP core)
wp-includes/class-wp-customize-manager.php 675
add_filter( 'stylesheet', array( $this, 'get_stylesheet' ) );
wp-includes/class-wp-customize-manager.php 713
remove_filter( 'stylesheet', array( $this, 'get_stylesheet' ) );