wp_get_attachment_image_attributes

Advertisement

Summery Summery

Filters the list of attachment image attributes.

Syntax Syntax

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

Parameters Parameters

$attr

Array of attribute values for the image markup, keyed by attribute name. See wp_get_attachment_image().

$attachment

Image attachment post.

$size

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

Source Source

File: wp-includes/media.php

Advertisement

Changelog Changelog

Changelog
Version Description
2.8.0 Introduced.

Advertisement

Leave a Reply