Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_get_attachment_image_src ›

Seit4.3.0
Veraltetn/v
apply_filters( 'wp_get_attachment_image_src', $image, $attachment_id, $size, $icon )
Parameter: (4)
  • (array|false) $image { Array of image data, or boolean false if no image is available. @type string $0 Image source URL. @type int $1 Image width in pixels. @type int $2 Image height in pixels. @type bool $3 Whether the image is a resized image. }
    Erforderlich: Ja
  • (int) $attachment_id Image attachment ID.
    Erforderlich: Ja
  • (string|int[]) $size Requested size of image. Image size name, or array of width and height values (in that order).
    Erforderlich: Ja
  • (bool) $icon Whether the image should be treated as an icon.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the attachment image source result.





Quellcode

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