wpseek.com
A WordPress-centric search engine for devs and theme authors



get_image_tag_class › WordPress Filter Hooks

Since2.6.0
Deprecatedn/a
apply_filters( 'get_image_tag_class', $class, $id, $align, $size )
Parameters: (4)
  • () class CSS class name or space-separated list of classes.
    Required: Yes
  • () id Attachment ID.
    Required: Yes
  • () align Part of the class name for aligning the image.
    Required: Yes
  • () 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 );