WordPress at a glance
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.


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

	return $class;
CSS class name or space-separated list of classes.
Attachment ID.
Part of the class name for aligning the image.
Size of image. Image size or array of width and height values (in that order).
Default: 'medium'

Список изменений

С версии 2.6.0 Введена.

Где вызывается хук

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

Где используется хук в ядре WP

Использование не найдено.