Support » Plugin: WP Video Popup – WordPress Video Lightbox for YouTube & Vimeo » Is the wp_video_popup filter still working?

  • Resolved ërralb

    (@ierpe)


    Hi,

    I’ve tried the filter:

    add_filter( 'wp_video_popup', 'prefix_your_custom_embed_url_parameters' );

    Or

    add_filter( 'wp_video_popup', function( $video_url ) {
      $video_url .= '&modestbranding=1';
      return $video_url;
    }, 100 );

    But it does not seem to work.
    Any idea what’s wrong? Is it still suppose to work?

    Kind regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author David Vongries

    (@davidvongries)

    Hi @ierpe,

    I’ve just tested it and it works perfectly fine for me.

    Please try:

    function prefix_your_custom_embed_url_attributes( $video_url ) {
        $video_url .= '&modestbranding=1';
        return $video_url;
    }
    add_filter( 'wp_video_popup', 'prefix_your_custom_embed_url_attributes' );
    Thread Starter ërralb

    (@ierpe)

    I changed the priority and now it works fine. Strange!
    I’m using the WP Bedrock install, it might be linked…

    Thanks for the support

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Is the wp_video_popup filter still working?’ is closed to new replies.