get_image_tag

最后更新于:2021-11-26 22:36:59

apply_filters( ‘get_image_tag’, string $html, int $id, string $alt, string $title, string $align, string|int[] $size )

Filters the HTML content for the image tag.

参数

$html

(string)
HTML content for the image.

$id

(int)
Attachment ID.

$alt

(string)
Image description for the alt attribute.

$title

(string)
Image description for the title attribute.

$align

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

$size

(string|int[])
Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).

源文件

文件: gc-includes/media.php

View on Trac