[wp-trac] [WordPress Trac] #27399: Filter the HTML output of wp_get_attachment_image
WordPress Trac
noreply at wordpress.org
Thu Apr 5 10:05:29 UTC 2018
#27399: Filter the HTML output of wp_get_attachment_image
-------------------------+------------------------------
Reporter: fgirardey | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 2.5
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------+------------------------------
Comment (by thomas.mery):
Hi there,
any chance to see this merged before 5.0 ?
as it seems to be the case for others (I gather) this would be very
convenient to have a one fit all lazy load solution that filters images
html outputs
rather than having to have a separate solution targeting {{{attributes}}}
via the {{{wp_get_attachment_image_attributes}}} hook
and as for the name of the requested filter would it make sense to name it
{{{attachment_image_html}}} so that one immediately gets a sense on what
he/she is filtering and as has been hinted at before match the
{{{post_thumbnail_html}}} format?
thanks for any feedback on this
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27399#comment:28>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list