Snippets: 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
		),
	);
} );

Version Required:4.3+

Snippet Type: PHP

Posted Under: Lightbox, Videos

All PHP snippets should be added via a child theme's functions.php file.