#8839 closed enhancement (duplicate)
Filter to alter wp_get_attachment_image()
Reported by: | dnusim | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.7 |
Component: | Media | Keywords: | needs-patch |
Focuses: | Cc: |
Description
I would like to alter the HTML generated by wp_get_attachment_image() in wp-includes/media.php with a plugin.
Would appreciate it if a filter could be added.
Change History (5)
Note: See
TracTickets for help on using
tickets.
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().