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.

Description Description

Parameters Parameters


(string) HTML content for the image.


(int) Attachment ID.


(string) Alternate text.


(string) Attachment title.


(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'.

Top ↑

Source Source

File: wp-includes/media.php

View on Trac

Top ↑

Changelog Changelog

Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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