Skip to content

Snippet: Enable WooCommerce Gallery Auto Play

add_filter( 'woocommerce_single_product_carousel_options', function( $options ) {
	$options['slideshow'] = true;      // enable auto slideshow
	$options['slideshowSpeed'] = 2000; // time in millesecond between slides
	return $options;
}, PHP_INT_MAX );
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