wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_get_attachment_image_src › Les Filtres WordPress

Depuis4.3.0
Dépréciéen/a
› apply_filters( 'wp_get_attachment_image_src', $image, $attachment_id, $size, $icon )
Paramètres: (4)
  • () 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. }
    Requis: Oui
  • () attachment_id Image attachment ID.
    Requis: Oui
  • () size Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
    Requis: Oui
  • () icon Whether the image should be treated as an icon.
    Requis: Oui
Défini(e) dans:
Codex:

Filters the attachment image source result.





Source

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