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

Filters the list of attachment image attributes.


Parameters

$attr

Attributes for the image markup.

$attachment

Image attachment post.

$size

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.