Advanced

In addition to the built-in shortcode attributes there is a filter available to add parameters to the embed-URL globally.

By default, we only add the autoplay parameter to the embed-URL that’s created dynamically from the video link provided in the shortcode.


Filter

Let’s use the filter to remove the YouTube branding.

function prefix_your_custom_embed_url_parameters( $video_url ) {
    $video_url .= '&modestbranding=1';
    return $video_url;
}

add_filter( 'wp_video_popup', 'prefix_your_custom_embed_url_parameters' );

To understand this, the default embed-URL the plugin creates would look something like this:

https://www.youtube.com/embed/sOjqTkk5d3A?autoplay=1

With the filter above, your embed-URL would look like this:

https://www.youtube.com/embed/sOjqTkk5d3A?autoplay=1&modestbranding=1
WP Video Popup

Add beautiful responsive YouTube & Vimeo Video Lightbox Popups to your WordPress website without sacrificing performance.

Our Products

If you like WP Video Popup, make sure to check out our other products:
– Page Builder Framework Theme
– Ultimate Dashboard
– WP Swift Control

Download

Enter your email address and be the first to get informed about new features & updates!

We take your privacy seriously! No spam, we promise. See our Privacy Policy.

Still looking for the Perfect Theme?

Page Builder Framework is the perfect theme for your next project. Check out Page Builder Framework today!