Uma área de pesquisa sobre o WordPress para devs e autores do tema



script_loader_tag ›

Desde4.1.0
Obsoleton/a
apply_filters( 'script_loader_tag', $tag, $handle, $src )
Parâmetros: (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
Definido em:
Codex:

Filters the HTML script tag of an enqueued script.





Fonte

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