wp_get_attachment_image_src( ... )

Retrieves an image to represent an attachment.

Parameters:
  • $attachment_id int
  • $size string | int[]
  • $icon bool