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



style_loader_tag ›

Since4.5.0
已弃用n/a
apply_filters( 'style_loader_tag', "\n", $handle, $href, $media )
参数: (4)
  • (string) $html The link tag for the enqueued style.
    Required: No
    默认:
  • (string) $handle The style's registered handle.
    Required: Yes
  • (string) $href The stylesheet's source URL.
    Required: Yes
  • (string) $media The stylesheet's media attribute.
    Required: Yes
定义在:
文档:

Filters the HTML link tag of an enqueued style.





源码

$tag = apply_filters( 'style_loader_tag', "<link rel='$rel' id='$handle-css' $title href='$href' type='text/css' media='$media' />\n", $handle, $href, $media );