[wp-trac] [WordPress Trac] #8839: Filter to alter wp_get_attachment_image()

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 9 18:43:45 UTC 2009


#8839: Filter to alter wp_get_attachment_image()
------------------------+---------------------------------------------------
  Reporter:  dnusim     |        Type:  enhancement
    Status:  closed     |    Priority:  normal     
 Milestone:  2.9        |   Component:  Media      
   Version:  2.7        |    Severity:  normal     
Resolution:  duplicate  |    Keywords:  needs-patch
------------------------+---------------------------------------------------
Changes (by Sam_a):

  * status:  new => closed
  * resolution:  => duplicate


Comment:

 You can use the filter hook `wp_get_attachment_image_attributes` (added in
 2.8 from ticket #8732) to change any of the `<img/>` attributes output
 from wp_get_attachment_image().

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/8839#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list