[wp-trac] [WordPress Trac] #28622: Add a filter for video shortcode pattern

WordPress Trac noreply at wordpress.org
Tue Oct 28 18:47:12 UTC 2014


#28622: Add a filter for video shortcode pattern
-----------------------------+----------------------
 Reporter:  jmlapam          |       Owner:
     Type:  feature request  |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Shortcodes       |     Version:  3.9.1
 Severity:  normal           |  Resolution:  invalid
 Keywords:                   |     Focuses:
-----------------------------+----------------------
Changes (by aaroncampbell):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 As for why we treat YouTube special in this case, it's because we use
 [http://mediaelementjs.com/ MediaElement.js] and they
 [http://mediaelementjs.com/examples/?name=youtube have special support for
 YouTube]. My understanding is that they only have special support like
 that for YouTube, so it wouldn't make sense to allow that code to match
 anything else.

 Having said all that, if you need to do something that the video shortcode
 doesn't do, you can use the `wp_video_shortcode_override` filter to
 completely shortcut it and do anything you want with it.

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


More information about the wp-trac mailing list