stylesheet_directory_uri filter-hookWP 1.5.0

Filters the stylesheet directory URI.

Usage

add_filter( 'stylesheet_directory_uri', 'wp_kama_stylesheet_directory_uri_filter', 10, 3 );

/**
 * Function for `stylesheet_directory_uri` filter-hook.
 * 
 * @param string $stylesheet_dir_uri Stylesheet directory URI.
 * @param string $stylesheet         Name of the activated theme's directory.
 * @param string $theme_root_uri     Themes root URI.
 *
 * @return string
 */
function wp_kama_stylesheet_directory_uri_filter( $stylesheet_dir_uri, $stylesheet, $theme_root_uri ){

	// filter...
	return $stylesheet_dir_uri;
}
$stylesheet_dir_uri(string)
Stylesheet directory URI.
$stylesheet(string)
Name of the activated theme's directory.
$theme_root_uri(string)
Themes root URI.

Changelog

Since 1.5.0 Introduced.

Where the hook is called

get_stylesheet_directory_uri()
stylesheet_directory_uri
wp-includes/theme.php 229
return apply_filters( 'stylesheet_directory_uri', $stylesheet_dir_uri, $stylesheet, $theme_root_uri );

Where the hook is used in WordPress

Usage not found.