On this page
apply_filters( 'script_loader_tag', string $tag, string $handle, string $src )
Filters the HTML script tag of an enqueued script.
Parameters
$tagstring-
The
<script>tag for the enqueued script. $handlestring-
The script's registered handle.
$srcstring-
The script's source URL.
Source
File: wp-includes/class-wp-scripts.php. View all references
$tag = apply_filters( 'script_loader_tag', $tag, $handle, $src );
Related
Used By
| Used By | Description |
|---|---|
| WP_Scripts::do_item() wp-includes/class-wp-scripts.php | Processes a script dependency. |
Changelog
| Version | Description |
|---|---|
| 4.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/script_loader_tag