Filters an enqueued style’s fully-qualified URL.
Parameters
$srcstring- The source URL of the enqueued style.
$handlestring- The style’s registered handle.
Source
$src = apply_filters( 'style_loader_src', $src, $handle ); Changelog
| Version | Description |
|---|---|
| 2.6.0 | Introduced. |
If you have a child theme that has had its stylesheet enqueued from within the main Parent theme, and you wish to update the version number that’s appended to the url, you can include this in your child theme
functions.phpfile.Obviously, change the version number (‘6.0.0’ in this example) to whatever is appropriate for you, along with comparing the approriate stylesheet handle (‘wpdocs-style’ in this example)
Where:
$src – (string) The source URL of the enqueued style
$handle – (string) The style’s registered handle