Used By
Used By | Description |
---|---|
wp-includes/post-template.php: wp_get_attachment_link() | Retrieve an attachment page link using an image or icon, if possible. |
Filters a retrieved attachment page link.
(string) The page link HTML output.
(int) Post ID.
(string|array) Size of the image. Image size or array of width and height values (in that order). Default 'thumbnail'.
(bool) Whether to add permalink to image. Default false.
(bool) Whether to include an icon. Default false.
(string|bool) If string, will be link text. Default false.
(array|string) Array or string of attributes. Default empty.
Version | Description |
---|---|
5.1.0 | Added the $attr parameter. |
2.7.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_get_attachment_link