fbpx
Enjoy Year-End Sale: 50% Off All Plugins! Coupon Code: NewYear2025

Disable related videos with youtube

Aditya Vikram

Hi, youtube videos are showing related videos at the end. I would like this to show no video or if videos are shown then there should be our videos only.

This is generally done by adding ?rel=0 while using youtube embed code. But in your plugin, we’re using the URLs only.

How can I disable related videos at the end of the playback or show my channel videos instead of some random videos?

Hakik Zaman

Hi Aditya,

Unfortunately, the feature is not currently available.

​But it’s a great idea.  I’ll discuss this feature with my team.

In the meantime, please send the feature request here: https://storepress.fider.io/
and ask your other to upvote it.

Cheers!

Aditya Vikram

Hi Hakik

 

This is something very important to add. Just have a look at how this is ruining the user experience.

https://www.mysterymonks.com/product/premium-explainer-video/

Do you think you can have a word with your team and let me know if this is something you guys can add in the coming days or not?

If not, I’ll start looking for another solution or some custom code.

Thanks

Aditya

Hakik Zaman

Hi Aditya,

It is difficult to say it from my side 🙁 . It depends on Development and Research team.

I can push them on it. If you can find a fix that will be great.

I hope you will understand.

Thank You

Aditya Vikram

There’s nothing you can do about it? Not even check with your team and see if they can do it soon?

Hakik Zaman

Hi Aditya,

Please try the below code inside your child theme’s functions.php or snippet as Code Snippets Plugin.

add_filter('woo_variation_gallery_get_embed_url', function( $link, $main_link ){
    return $link.'&rel=0';
}, 10, 2);

Note: After using the above snippet you should copy this video URL.

Then let me know if it resolves your issue or not.

Thank You

Aditya Vikram

Interesting, let me give this a try and get back to you.

Hakik Zaman

Hi Aditya,

I am very glad that it helped.

Is there anything I can help with?

or,

Can I close this ticket now?

Thank You

Aditya Vikram

Yes you can but i wanted to ask if you’re adding this feature natively to the plugin anytime soon?

Hakik Zaman

Hi Aditya,

I have asked the development team. They said, if we want to provide more control over YouTube then API will be needed.

Which will be difficult to manage for non-tech users of Gallery. Still, I will try to push them again to rethink it.

Thank You