[wp-trac] [WordPress Trac] #37552: Youtube Oembed ignores parameter(s)

WordPress Trac noreply at wordpress.org
Wed Aug 3 08:55:24 UTC 2016


#37552: Youtube Oembed ignores parameter(s)
-------------------------+------------------------------
 Reporter:  deas0815     |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Embeds       |     Version:  4.5.3
 Severity:  normal       |  Resolution:
 Keywords:  close        |     Focuses:
-------------------------+------------------------------
Changes (by swissspidy):

 * keywords:   => close
 * type:  defect (bug) => enhancement


Comment:

 Hey there,

 Thanks for your report and welcome to Trac!

 YouTube seems to support the `rel` parameter in the resulting iframe, but
 ignores it at the oEmbed endpoint for some reason. So that's a YouTube
 issue. There are plenty of other parameters YouTube ignores with oEmbed
 (`iv_load_policy`, `showinfo`, `vq`, etc.).

 We would have to manually parse the URL and change the embed code to
 include those, which is hacky at best (the embed code can change any day).
 Thus, I would say this is plugin territory. Here's one plugin you can try:
 https://wordpress.org/plugins/hide-youtube-related-videos/

 Related: #31920, although there YouTube supports the `t` parameter.

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


More information about the wp-trac mailing list