A WordPress-centric search engine for devs and theme authors



get_image_tag ›

Since2.6.0
Deprecatedn/a
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 Alternate text.
    Required: Yes
  • (string) $title Attachment title.
    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 HTML content for the image tag.





Source

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