apply_filters( ‘get_image_tag’, string $html, int $id, string $alt, string $title, string $align, string|int[] $size )

In this article

Filters the HTML content for the image tag.

Parameters

$htmlstring
HTML content for the image.
$idint
Attachment ID.
$altstring
Image description for the alt attribute.
$titlestring
Image description for the title attribute.
$alignstring
Part of the class name for aligning the image.
$sizestring|int[]
Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).

Source

return apply_filters( 'get_image_tag', $html, $id, $alt, $title, $align, $size );

Changelog

VersionDescription
2.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.