• Resolved undergroundnetwork

    (@undergroundnetwork)


    Hi,
    Great plugin. Can’t seem to add parameters. I’ve disabled ALL plugins and changed my theme to Twenty Fifteen. Still no go.

    Added in this code:

    add_filter("hyrv_extra_querystring_parameters", "my_hyrv_extra_querystring_parameters");
    function my_hyrv_extra_querystring_parameters($str) {
        return "autoplay=0&cc_load_policy=0&iv_load_policy=1&loop=0&modestbranding=0&rel=0&showinfo=0&playsinline=0&autohide=1&theme=dark&color=red&wmode=opaque&vq=&controls=2&";
    }

    Thanks!

    Charles

    https://wordpress.org/plugins/hide-youtube-related-videos/

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

    (@sparkweb)

    Deactivate the plugin and reactivate it. This resets the oembed cache and the new settings will show up. I loaded in your code and it worked once I cycled the plugin activation.

    MarialKa

    (@marialka)

    Well but it’s “better” to use above snipset than your suggested code here
    https://wordpress.org/support/topic/how-can-i-add-more-parameters#post-5560038
    Using $source and return $source like this

    function my_hyrv_extra_querystring_parameters($source) {
        return $source . "autoplay=1 (...)

    Sorry, I’m newbie

    Plugin Author sparkweb

    (@sparkweb)

    Yup, it looks like in the initial code posted it wasn’t passing through the source. Your code looks like it should work nicely.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Can't get more parameters to work either’ is closed to new replies.