Filters the HTML script tag of an enqueued script.
$tagstring
<script> tag for the enqueued script.$handlestring
$srcstring
$tag = apply_filters( 'script_loader_tag', $tag, $handle, $src );
| Version | Description |
|---|---|
| 4.1.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/script_loader_tag