Filter hook 'get_image_tag'

in WP Core File wp-includes/media.php at line 421

Description

Filters the HTML content for the image tag.

Occurrences

Filename Line Number
wp-includes/media.php 421

Parameters

Type Name Description
string $html HTML content for the image.
int $id Attachment ID.
string $alt Image description for the alt attribute.
string $title Image description for the title attribute.
string $align Part of the class name for aligning the image.
string|int[] $size Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).

PHP Doc

/**
	 * Filters the HTML content for the image tag.
	 *
	 * @since 2.6.0
	 *
	 * @param string       $html  HTML content for the image.
	 * @param int          $id    Attachment ID.
	 * @param string       $alt   Image description for the alt attribute.
	 * @param string       $title Image description for the title attribute.
	 * @param string       $align Part of the class name for aligning the image.
	 * @param string|int[] $size  Requested image size. Can be any registered image size name, or
	 *                            an array of width and height values in pixels (in that order).
	 */