wpseek.com
WordPress开发者和主题制作者的搜索引擎



script_loader_tag › WordPress过滤钩子

Since4.1.0
已弃用n/a
apply_filters( 'script_loader_tag', $tag, $handle, $src )
参数: (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
定义在:
文档:

Filters the HTML script tag of an enqueued script.





源码

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