Support » Plugin: Hide YouTube Related Videos » embed_defaults size not working anymore

  • Hi

    Thank you for the plugin
    I digged inside the code and saw you unregistered the youtube default embed

    Problem is I use a hook to modify the size of the embed and it is erased as well :

    add_filter( 'embed_defaults', 'bigger_embed_size');
    function bigger_embed_size($embed) {
      return array(
    	'width' => 650,
    	'height' => 390,

    I wrote some js in order to bypass it but it’s really a dirty method
    Thank you for your help 🙂

Viewing 1 replies (of 1 total)
  • Plugin Author sparkweb


    The default method had to be unregistered as it caused the plugin not to function.

    You could use the plugin filter and possibly do something like this:

    add_filter("hyrv_extra_querystring_parameters", "my_hyrv_extra_querystring_parameters");
    function my_hyrv_extra_querystring_parameters($str) {
        return "wmode=transparent&width=650&height=390&";

    I’m not sure if that would work, but it sure might.

Viewing 1 replies (of 1 total)
  • The topic ‘embed_defaults size not working anymore’ is closed to new replies.