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|array) $size Size of image. Image size or array of width and height values (in that order). Default 'medium'.
    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 );