Summery Summery

Filters the HTML content for the image tag.

Syntax Syntax

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

Parameters Parameters


(string) HTML content for the image.


(int) Attachment ID.


(string) Image description for the alt attribute.


(string) Image description for the title attribute.


(string) Part of the class name for aligning the image.


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

Source Source

File: wp-includes/media.php


Changelog Changelog

Version Description
2.6.0 Introduced.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

What are you looking for?