stylesheet_uri
Filters the URI of the current theme stylesheet.
Description
add_filter( 'stylesheet_uri', $array );
Parameters (1)
- 0. $array
- The array.
Usage
- To run the hook, copy the example below.
- $array = apply_filters( 'stylesheet_uri', $array );
- if ( !empty( $array ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the stylesheet_uri callback
- function filter_stylesheet_uri( $array ) {
- // make filter magic happen here...
- return $array;
- };
- // add the filter
- add_filter( 'stylesheet_uri', 'filter_stylesheet_uri', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'stylesheet_uri', 'filter_stylesheet_uri', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /modules/custom-css/custom-css.php
- add_filter( 'stylesheet_uri', array( __CLASS__, 'style_filter' ) );