A WordPress-centric search engine for devs and theme authors



get_image_tag_class ›

Since2.6.0
Deprecatedn/a
apply_filters( 'get_image_tag_class', $class, $id, $align, $size )
Parameters: (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|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).
    Required: Yes
Defined at:
Codex:

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





Source

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