id summary reporter owner description type status priority milestone component version severity resolution keywords cc focuses 36270 Allow filtering of the final HTML output of media related shortcodes gnotaras "Sometimes it is required to further process the final HTML output of the media related shortcodes, eg {{{caption}}} or {{{gallery}}}, so as to add extra HTML code such as enclosing div or span elements or just modify the existing HTML code during run time. For instance the final output of {{{img_caption_shortcode}}} could be filtered: https://core.trac.wordpress.org/browser/tags/4.4.2/src/wp-includes/media.php#L1537 Passing all relevant image attachment data, like ID and size, would also be very useful. I hope that I am not missing anything but right now the only way to insert code inside the {{{
}}} or {{{
}}} block seems to be the complete override of the {{{img_caption_shortcode}}} function. " enhancement new normal Awaiting Review Media 4.7.2 normal needs-patch