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

Filters the list of attachment image attributes.


Description


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'.


Top ↑

Source

File: wp-includes/media.php

View on Trac


Top ↑

Changelog

Version Description
2.8.0 Introduced.