get_image_tag_class

最后更新于:2021-11-26 22:37:46

apply_filters( ‘get_image_tag_class’, string $class, int $id, string $align, string|int[] $size )

Filters the value of the attachment’s image tag class attribute.

参数

$class

(string)
CSS class name or space-separated list of classes.

$id

(int)
Attachment ID.

$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