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

Filters the HTML content for the image tag.


Parameters

$html

HTML content for the image.

$id

Attachment ID.

$alt

Alternate text.

$title

Attachment title.

$align

Part of the class name for aligning the image.

$size

Size of image. Image size or array of width and height values (in that order). Default 'medium'.


Source

File: wp-includes/media.php

View on GitHub


Changelog

Changelog
Version Description
WP-2.6.0 Introduced.