Support » Plugin: Hide YouTube Related Videos » How can I add more parameters?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author sparkweb

    (@sparkweb)

    Put this in your theme’s functions.php file:

    add_filters("hyrv_extra_querystring_parameters", "my_hyrv_extra_querystring_parameters");
    function my_hyrv_extra_querystring_parameters($source) {
        return $source . "autoplay=1&wmode=opaque&showinfo=0&modestbranding=0&";
    }

    Hi! I really like your plugin. I too would like to remove the title info (in addition to the related videos). When I add your code to my child theme’s functions.php file, I get this error: “Fatal error: Call to undefined function add_filters()” Is there something else I need to add to make the code you provided work? Thanks!

    Plugin Author sparkweb

    (@sparkweb)

    I really screwed up that code. It’s add_filter(), not add_filters().

    🙂 Try that…..

    That fixed the problem. 🙂 I adjusted the “return $source” portion to just “showinfo=0&” to remove the title and it worked perfectly! Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How can I add more parameters?’ is closed to new replies.