[wp-trac] [WordPress Trac] #32877: Added filter in wp_get_attachment_image

WordPress Trac noreply at wordpress.org
Fri Jul 3 12:17:27 UTC 2015


#32877: Added filter in wp_get_attachment_image
--------------------------+-----------------------------
 Reporter:  spacedmonkey  |      Owner:
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 There should be a filter in wp_get_attachment_image function to filter the
 full html. I know that you can add attributes to the tag using
 wp_get_attachment_image_attributes. But this doesn't allow you to change
 the tag or wrap the tag in a div for example.

 This would bring into line with other filters such as,
 post_thumbnail_html, script_loader_tag and style_loader_tag.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32877>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list