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

Create beautiful responsive YouTube & Vimeo Lightbox Popups in WordPress.

New: Add Self-Hosted Videos with WP VIdeo Popup PRO!