WordPress.org

Plugin Directory

Hide YouTube Related Videos

This is a simple plugin to keep the YouTube oEmbed from showing related videos.

Copy the folder to your WordPress '/wp-content/plugins/' folder.

  1. Activate the plugin in your WordPress admin
  2. That's it. There's nothing else to do. Really!

If you want to pass in some other parameters to the embedded url, you can do so with the hyrv_extra_querystring_parameters filter. Just make sure you end with an ampersand.

Add Something:

add_filter("hyrv_extra_querystring_parameters", "my_hyrv_extra_querystring_parameters");
function my_hyrv_extra_querystring_parameters($str) {
    return "wmode=transparent&MY_VAR_NAME=MY_VALUE&";
}

Remove the wmode=transparent:

add_filter("hyrv_extra_querystring_parameters", "my_hyrv_extra_querystring_parameters");
function my_hyrv_extra_querystring_parameters($str) {
    return "";
}

Be sure to leave an & at the end of your string. After installing your filter, be sure to deactivate and reactivate the plugin.

Requires: 2.9 or higher
Compatible up to: 4.4.5
Last Updated: 9 months ago
Active Installs: 10,000+

Ratings

4.9 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,2,2
100,1,1
100,1,1
100,1,1
40,5,2
0,1,0 100,1,1
100,1,1 100,1,1
100,1,1
100,1,1
100,1,1
100,2,2
100,3,3
100,1,1
100,1,1