A WordPress-centric search engine for devs and theme authors

get_image_tag ›

apply_filters( 'get_image_tag', $html, $id, $alt, $title, $align, $size )
Parameters: (6)
  • (string) $html HTML content for the image.
    Required: Yes
  • (int) $id Attachment ID.
    Required: Yes
  • (string) $alt Image description for the alt attribute.
    Required: Yes
  • (string) $title Image description for the title attribute.
    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:

Filters the HTML content for the image tag.


return apply_filters( 'get_image_tag', $html, $id, $alt, $title, $align, $size );