apply_filters( 'style_loader_src', string $src , string $handle )
Filters an enqueued style’s fully-qualified URL.
Parameters Parameters
- $src
-
(string) The source URL of the enqueued style.
- $handle
-
(string) The style's registered handle.
Source Source
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
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.php
file.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