WordPress at a glance
filter is not described

style_loader_tag filter-hook . WP 2.6.0

Filters the HTML link tag of an enqueued style.


add_filter( 'style_loader_tag', 'filter_function_name_4187', 10, 4 );
function filter_function_name_4187( $html, $handle, $href, $media ){
	// filter...

	return $html;
The link tag for the enqueued style.
The style's registered handle.
The stylesheet's source URL.
The stylesheet's media attribute.


Since 2.6.0 Introduced.
Since 4.3.0 Introduced the $href parameter.
Since 4.5.0 Introduced the $media parameter.

Where the hook is called

wp-includes/class.wp-styles.php 213
$tag = apply_filters( 'style_loader_tag', "<link rel='$rel' id='$handle-css' $title href='$href' type='text/css' media='$media' />\n", $handle, $href, $media );
wp-includes/class.wp-styles.php 224
$rtl_tag = apply_filters( 'style_loader_tag', "<link rel='$rel' id='$handle-rtl-css' $title href='$rtl_href' type='text/css' media='$media' />\n", $handle, $rtl_href, $media );

Where the hook is used (in WP core)

Usage not found!