locale_stylesheet_uri

Filters the localized stylesheet URI.

Description

apply_filters( 'locale_stylesheet_uri', (string) $stylesheet_uri, (string) $stylesheet_dir_uri ); 

Parameters (2)

0. $stylesheet_uri (string)
Localized stylesheet URI.
1. $stylesheet_dir_uri (string)
Stylesheet directory URI.

Usage

To run the hook, copy the example below.
  1. $stylesheet_uri = apply_filters( 'locale_stylesheet_uri', $stylesheet_uri, $stylesheet_dir_uri ); 
  2.  
  3. if ( !empty( $stylesheet_uri ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the locale_stylesheet_uri callback 
  2. function filter_locale_stylesheet_uri( $stylesheet_uri, $stylesheet_dir_uri ) { 
  3. // make filter magic happen here... 
  4. return $stylesheet_uri
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'locale_stylesheet_uri', 'filter_locale_stylesheet_uri', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'locale_stylesheet_uri', 'filter_locale_stylesheet_uri', 10, 2 ); 

Defined (1)

The filter is defined in the following location(s).

/wp-includes/theme.php  
  1. return apply_filters( 'locale_stylesheet_uri', $stylesheet_uri, $stylesheet_dir_uri );