WordPress at Your Fingertips
filter is not described

get_image_tag filter-hook . WP 2.6.0

Filters the HTML content for the image tag.


add_filter( 'get_image_tag', 'filter_function_name_8690', 10, 6 );
function filter_function_name_8690( $html, $id, $alt, $title, $align, $size ){
	// filter...

	return $html;
HTML content for the image.
Attachment ID.
Image description for the alt attribute.
Image description for the title attribute.
Part of the class name for aligning the image.
Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).

Where the hook is called

wp-includes/media.php 411
return apply_filters( 'get_image_tag', $html, $id, $alt, $title, $align, $size );

Where in WP core the hook is used WordPress

Usage not found.