wpseek.com
A WordPress-centric search engine for devs and theme authors



script_loader_tag › WordPress Filter Hooks

Since4.1.0
Deprecatedn/a
apply_filters( 'script_loader_tag', $tag, $handle, $src )
Parameters: (3)
  • (string) $tag The `<script>` tag for the enqueued script.
    Required: Yes
  • (string) $handle The script's registered handle.
    Required: Yes
  • (string) $src The script's source URL.
    Required: Yes
Defined at:
Codex:

Filters the HTML script tag of an enqueued script.





Source

$tag = apply_filters( 'script_loader_tag', $tag, $handle, $src );