Filters a retrieved attachment page link.
$link_htmlstring
$postint|WP_Post
$sizestring|int[]
$permalinkbool
$iconbool
$textstring|false
$attrarray|string
return apply_filters( 'wp_get_attachment_link', $link_html, $post, $size, $permalink, $icon, $text, $attr );
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_get_attachment_link