Created
September 17, 2021 10:03
-
-
Save WpComet/4a802a56817448e3dd425b2efcad294f to your computer and use it in GitHub Desktop.
Making woocommerce product gallery autoplay
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Perfect