W3cubDocs

/WordPress

apply_filters( 'style_loader_tag', string $html, string $handle, string $href, string $media )

Filters the HTML link tag of an enqueued style.

Parameters

$html

(string) The link tag for the enqueued style.

$handle

(string) The style's registered handle.

$href

(string) The stylesheet's source URL.

$media

(string) The stylesheet's media attribute.

Source

File: wp-includes/class.wp-styles.php

View on Trac

Changelog

Version Description
4.5.0 Introduced the $media parameter.
4.3.0 Introduced the $href parameter.
2.6.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/style_loader_tag