Opened 9 years ago
Closed 9 years ago
#43543 closed feature request (duplicate)
New filter for output of wp_get_attachment_image function
| Reported by: | sebastian.pisula | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Media | Version: | 5.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
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...
Attachments (1)
Change History (3)
Note:
See TracTickets
for help on using tickets.
@sebastian.pisula Thanks for the ticket and the patch.
This is feature request has already been posted here #27399.
You're welcome to join in there.