W3cubDocs

/WordPress

apply_filters( 'get_image_tag_class', string $class, int $id, string $align, string|array $size )

Filters the value of the attachment’s image tag class attribute.

Parameters

$class

(string) CSS class name or space-separated list of classes.

$id

(int) Attachment ID.

$align

(string) Part of the class name for aligning the image.

$size

(string|array) Size of image. Image size or array of width and height values (in that order). Default 'medium'.

Source

File: wp-includes/media.php

View on Trac

Changelog

Version Description
2.6.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_image_tag_class