[wp-trac] [WordPress Trac] #27399: Filter the HTML output of wp_get_attachment_image
WordPress Trac
noreply at wordpress.org
Fri Nov 11 09:35:41 UTC 2016
#27399: Filter the HTML output of wp_get_attachment_image
-----------------------------+-----------------------
Reporter: fgirardey | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone:
Component: Media | Version: 3.8.1
Severity: normal | Resolution:
Keywords: has-patch close | Focuses:
-----------------------------+-----------------------
Comment (by andreamk):
Hello
Another reason to add the filter is to insert a noscript tag.
I would like to integrate the library interchange in wordpress
([http://foundation.zurb.com/sites/docs/interchange.html])
The html that I would make is the following
{{{
<img data-interchange="[assets/img/interchange/small.jpg, small],
[assets/img/interchange/medium.jpg, medium],
[assets/img/interchange/large.jpg, large]">
<noscript>
<img src="assets/img/interchange/large.jpg">
</noscript>
}}}
Without the proposed filter is impossible
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27399#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list