WordPress at Your Fingertips
filter is not described

get_image_tag_class filter-hook . WP 2.6.0

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

Usage

add_filter( 'get_image_tag_class', 'filter_function_name_9505', 10, 4 );
function filter_function_name_9505( $class, $id, $align, $size ){
	// filter...

	return $class;
}
$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|int[])
Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).

Changelog

Since 2.6.0 Introduced.

Where the hook is called

get_image_tag()
get_image_tag_class
wp-includes/media.php 394
$class = apply_filters( 'get_image_tag_class', $class, $id, $align, $size );

Where in WP core the hook is used WordPress

Usage not found.