WordPress at Your Fingertips
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_7105', 10, 4 );
function filter_function_name_7105( $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 251
$tag = apply_filters( 'style_loader_tag', $tag, $handle, $href, $media );
wp-includes/class.wp-styles.php 272
$rtl_tag = apply_filters( 'style_loader_tag', $rtl_tag, $handle, $rtl_href, $media );

Where in WP core the hook is used WordPress

Usage not found.