wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_get_attachment_image_src › WordPress Filter Hooks

Da4.3.0
Deprecaton/a
› apply_filters( 'wp_get_attachment_image_src', $image, $attachment_id, $size, $icon )
Parametri: (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. }
    Richiesto: Sì
  • () attachment_id Image attachment ID.
    Richiesto: Sì
  • () size Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
    Richiesto: Sì
  • () icon Whether the image should be treated as an icon.
    Richiesto: Sì
Definito a:
Codex:

Filters the attachment image source result.





Sorgenti

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