wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_get_attachment_link › WordPress Filter Hooks

Since5.1.0
Deprecatedn/a
apply_filters( 'wp_get_attachment_link', $link_html, $post, $size, $permalink, $icon, $text, $attr )
Parameters: (7)
  • () link_html The page link HTML output.
    Required: Yes
  • () post Post ID or object. Can be 0 for the current global post.
    Required: Yes
  • () size Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
    Required: Yes
  • () permalink Whether to add permalink to image. Default false.
    Required: Yes
  • () icon Whether to include an icon.
    Required: Yes
  • () text If string, will be link text.
    Required: Yes
  • () attr Array or string of attributes.
    Required: Yes
Defined at:
Codex:

Filters a retrieved attachment page link.





Source

return apply_filters( 'wp_get_attachment_link', $link_html, $post, $size, $permalink, $icon, $text, $attr );