WordPress开发者和主题制作者的搜索引擎



get_image_tag_class ›

Since2.6.0
已弃用n/a
apply_filters( 'get_image_tag_class', $class, $id, $align, $size )
参数: (4)
  • (string) $class CSS class name or space-separated list of classes.
    Required: Yes
  • (int) $id Attachment ID.
    Required: Yes
  • (string) $align Part of the class name for aligning the image.
    Required: Yes
  • (string|array) $size Size of image. Image size or array of width and height values (in that order). Default 'medium'.
    Required: Yes
定义在:
文档:

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





源码

$class = apply_filters( 'get_image_tag_class', $class, $id, $align, $size );