Enable Lightbox Infinite Loop
add_filter( 'wpex_ilightbox_settings', function( $settings ) {
$settings['infinite'] = true;
return $settings;
} );
All PHP snippets should be added via child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)