skip to Main Content

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)
Back To Top