Filter hook 'get_image_tag_class'

in WP Core File wp-includes/media.php at line 404

Description

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

Occurrences

Filename Line Number
wp-includes/media.php 404

Parameters

Type Name Description
string $class CSS class name or space-separated list of classes.
int $id Attachment ID.
string $align Part of the class name for aligning the image.
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).

PHP Doc

/**
	 * Filters the value of the attachment's image tag class attribute.
	 *
	 * @since 2.6.0
	 *
	 * @param string       $class CSS class name or space-separated list of classes.
	 * @param int          $id    Attachment ID.
	 * @param string       $align Part of the class name for aligning the image.
	 * @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).
	 */