A WordPress-centric search engine for devs and theme authors



wp_get_attachment_image_src ›

Since4.3.0
Deprecatedn/a
apply_filters( 'wp_get_attachment_image_src', $image, $attachment_id, $size, $icon )
Parameters: (4)
  • (array|false) $image Either array with src, width & height, icon src, or false.
    Required: Yes
  • (int) $attachment_id Image attachment ID.
    Required: Yes
  • (string|array) $size Size of image. Image size or array of width and height values (in that order). Default 'thumbnail'.
    Required: Yes
  • (bool) $icon Whether the image should be treated as an icon. Default false.
    Required: Yes
Defined at:
Codex:

Filters the image src result.





Source

return apply_filters( 'wp_get_attachment_image_src', $image, $attachment_id, $size, $icon );