wp_get_attachment_link – filter
Filters a retrieved attachment page link.
Parameters
- .
- ( 2.7.0 ) . .
- Added
- ( 5.1.0 ) the `$attr` parameter. . . .
- ( string ) $link_html The page link HTML output. . . .
- ( int|WP_Post ) $id Post ID or object. Can be 0 for the current global post. . . .
- $size
- ( string|int[] ) Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order). . . .
- ( bool ) $permalink Whether to add permalink to image. Default false. . . .
- ( bool ) $icon Whether to include an icon. . . .
- $text
- ( string|false ) If string, will be link text. . . .
- $attr
- ( array|string ) Array or string of attributes. . . .