Glossary Term
wp_get_attachment_image_src()
wp_get_attachment_image_src() — Retrieves an image to represent an attachment.
Inputs: $attachment_id (int): Image attachment ID. $size (string|int[]): Optional. Image size. Accepts any registered image size name, or an array of width and height values in pixels (in that order). Default ‘thumbnail’. $icon (bool): Optional. Whether the image should fall back to a mime type icon. Default false.
Returns array|false: Array of image data, or boolean false if no image is available. Field $0 (string): Image source URL. Field $1 (int): Image width in pixels. Field $2 (int): Image height in pixels. Field $3 (bool): Whether the image is a resized image.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
