stylesheet_uri filter-hookWP 1.5.0

Filters the URI of the active theme stylesheet.

Usage

add_filter( 'stylesheet_uri', 'wp_kama_stylesheet_uri_filter', 10, 2 );

/**
 * Function for `stylesheet_uri` filter-hook.
 * 
 * @param string $stylesheet_uri     Stylesheet URI for the active theme/child theme.
 * @param string $stylesheet_dir_uri Stylesheet directory URI for the active theme/child theme.
 *
 * @return string
 */
function wp_kama_stylesheet_uri_filter( $stylesheet_uri, $stylesheet_dir_uri ){

	// filter...
	return $stylesheet_uri;
}
$stylesheet_uri(string)
Stylesheet URI for the active theme/child theme.
$stylesheet_dir_uri(string)
Stylesheet directory URI for the active theme/child theme.

Changelog

Since 1.5.0 Introduced.

Where the hook is called

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

Where the hook is used in WordPress

Usage not found.