style_loader_src WordPress Filter Hook
The style_loader_src hook is used to modify the URL of the stylesheet. This can be useful for loading a different stylesheet based on the current page template or post type.
apply_filters( 'style_loader_src', string $src , string $handle ) #
Filters an enqueued style’s fully-qualified URL.
Parameters
- $src
(string)The source URL of the enqueued style.
- $handle
(string)The style's registered handle.
Source
Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |