apply_filters( 'wp_get_attachment_image_attributes', array $attr, WP_Post $attachment, string|array $size )

Filters the list of attachment image attributes.


Parameters

$attr

(array) Attributes for the image markup.

$attachment

(WP_Post) Image attachment post.

$size

(string|array) Requested size. Image size or array of width and height values (in that order). Default 'thumbnail'.


Source

File: wp-includes/media.php

View on GitHub



Changelog

Changelog
Version Description
WP-2.8.0 Introduced.