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

Filters the HTML content for the image tag.


Parameters

$html string
HTML content for the image.
$id int
Attachment ID.
$alt string
Image description for the alt attribute.
$title string
Image description for the title attribute.
$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).

Top ↑

Source

File: wp-includes/media.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes

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