WordPress.org

Plugin Directory

Test out the new Plugin Directory and let us know what you think.

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.7.1
Last Updated: 1 month ago
Active Installs: 10,000+

Ratings

4.9 out of 5 stars

Support

0 of 1 support threads in the last two months have been marked resolved.

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