Filters a retrieved attachment page link.
Parameters
$link_htmlstring- The page link HTML output.
$postint|WP_Post- Post ID or object. Can be 0 for the current global post.
$sizestring|int[]- Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
$permalinkbool- Whether to add permalink to image. Default false.
$iconbool- Whether to include an icon.
$textstring|false- If string, will be link text.
$attrarray|string- Array or string of attributes.
Source
return apply_filters( 'wp_get_attachment_link', $link_html, $post, $size, $permalink, $icon, $text, $attr );
User Contributed Notes
You must log in before being able to contribute a note or feedback.