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



wp_get_attachment_link_attributes › WordPress过滤钩子

Since6.2.0
已弃用n/a
› apply_filters( 'wp_get_attachment_link_attributes', array( 'href' => $url )
参数: (2)
  • () attributes An array of attributes for the link markup, keyed on the attribute name.
    Required: No
    默认: —
  • () id Post ID.
    Required: Yes
定义在:
文档:

Filters the list of attachment link attributes.





源码

$attributes = apply_filters( 'wp_get_attachment_link_attributes', array( 'href' => $url ), $_post->ID );