Gets the URL of an image attachment.
$attachment_idintrequired
$sizestring|int[]optional
'thumbnail'.Default:'thumbnail'
$iconbooloptional
Default:false
$size does not match any registered image size, the original image URL will be returned./**
* Gets the URL of an image attachment.
*
* @since 4.4.0
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_get_attachment_image_url