[wp-trac] [WordPress Trac] #43543: New filter for output of wp_get_attachment_image function

WordPress Trac noreply at wordpress.org
Wed Mar 14 07:37:37 UTC 2018


#43543: New filter for output of wp_get_attachment_image function
------------------------------+-----------------------------
 Reporter:  sebastian.pisula  |      Owner:
     Type:  feature request   |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Media             |    Version:  trunk
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 I suggest add new filter `attachment_image_html` for output of
 wp_get_attachment_image function with  parameters $html, $attachment_id,
 $attr, $size .

 Example of usage: I can check that file is svg, if true then output
 content of this file else display <img...

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


More information about the wp-trac mailing list