get_image_tag

Advertisement

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

$html

HTML content for the image.

$id

Attachment ID.

$alt

Image description for the alt attribute.

$title

Image description for the title attribute.

$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 Source

File: wp-includes/media.php

Advertisement

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Advertisement

Leave a Reply