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



wp_targeted_link_rel › WordPress过滤钩子

Since5.1.0
已弃用n/a
› apply_filters( 'wp_targeted_link_rel', 'noopener', $link_html )
参数: (2)
  • () rel The rel values.
    Required: Yes
  • () link_html The matched content of the link tag including all HTML attributes.
    Required: Yes
定义在:
文档:

Filters the rel values that are added to links with `target` attribute.





源码

$rel = apply_filters( 'wp_targeted_link_rel', 'noopener', $link_html );