apply_filters( 'script_loader_tag', string $tag , string $handle , string $src )
Filters the HTML script tag of an enqueued script.
Description Description
Parameters Parameters
- $tag
-
(string) The
<script>
tag for the enqueued script. - $handle
-
(string) The script's registered handle.
- $src
-
(string) The script's source URL.
Source Source
Changelog Changelog
Version | Description |
---|---|
4.1.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
Useful when a script excecution depends on “ attributes, eg:
Feedback
Missing { on line 4. — By Sam —