Support » Plugin: Hide YouTube Related Videos » Can't get it to work.

  • promotinglife


    Hi. I can’t seem to get this plugin to work.

    I have tried to deactivate all other plugins.

    Currently the code looks like this:

    add_filter('oembed_result', 'hide_youtube_related_videos', 10, 3);
    function hide_youtube_related_videos($source, $url, $args = array()) {
    	$data = preg_replace('/(youtube\.com.*)(\?feature=oembed)(.*)/', '$1?' . apply_filters("hyrv_extra_querystring_parameters", "wmode=opaque&autohide=1&") . 'rel=0$3', $source);
    	return $source;

    the video code on my page is:

    What’s wrong?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Can't get it to work.’ is closed to new replies.