Making woocommerce product gallery autoplay

 

add_filter( 'woocommerce_single_product_carousel_options', 'filter_single_product_carousel_options' );
function filter_single_product_carousel_options( $options ) {
    $options['slideshow'] = true;
    $options['animationLoop'] = true;
    $options['slideshowSpeed'] = 3000;
    return $options;
}

https://gist.github.com/WpComet/4a802a56817448e3dd425b2efcad294f

Leave a Reply

Your email address will not be published. Required fields are marked *