Snippets: Disable Lightbox on WordPress Galleries

add_filter( 'wpex_localize', function( $settings ) {
	$settings['wpGalleryLightbox'] = false;
	return $settings;
});