Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/media.php | apply_filters | 1095 | /** * Filters the list of attachment image attributes. * * @since 2.8.0 * * @param string[] $attr Array of attribute values for the image markup, keyed by attribute name. * See wp_get_attachment_image(). * @param WP_Post $attachment Image attachment post. * @param string|int[] $size Requested image size. Can be any registered image size name, or * an array of width and height values in pixels (in that order). */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
string[] | $attr | Array of attribute values for the image markup, keyed by attribute name. |
WP_Post | $attachment | Image attachment post. |
string|int[] | $size | Requested image size. Can be any registered image size name, or |