apply_filters( 'style_loader_tag', string $tag , string $handle , string $href , string $media )
Filters the HTML link tag of an enqueued style.
Parameters
- $tag
-
(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
Changelog
Version | Description |
---|---|
4.5.0 | Introduced the $media parameter. |
4.3.0 | Introduced the $href parameter. |
2.6.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
This simple change will make your browser call the Google Font page in the applicable mode (HTTP vs HTTPS) with wp_enqueue_style.
To defer loading of non-critical CSS :