Skip to content

Snippet: Add Custom Params to Lightbox Videos

// You can add custom params for any "vendor" this example is for youtube
add_filter( 'wpex_get_video_embed_url_params', function() {
	return array(
		'youtube' => array(
			'autoplay' => 1
} );
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top