[wp-trac] [WordPress Trac] #36270: Allow filtering of the final HTML output of media related shortcodes

WordPress Trac noreply at wordpress.org
Thu Feb 20 09:58:02 UTC 2020


#36270: Allow filtering of the final HTML output of media related shortcodes
-------------------------+------------------------------
 Reporter:  gnotaras     |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Media        |     Version:  4.7.2
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:
-------------------------+------------------------------

Comment (by mlchaves):

 Hello,

 I created a filter to allow **caption** customisation. Here's the Gist.

 https://gist.github.com/marklchaves/1116bba6fcd9688b4df5b121d5d76277

 This Gist has two screen grabs.

 1. Gallery with the media attachment **title** and **caption** displayed
 using default formatting.
 2. Gallery with the media attachment **title**, **caption**, and
 **description** using a styled {{{ H4 }}} {{{ captiontag }}}.

 I'd like to submit a **pull request** if you feel this is worthy.

 Thanks for your time!

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/36270#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list