Skip to content

Instantly share code, notes, and snippets.

@WpComet
Created September 17, 2021 10:03
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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;
}
@esaesa
Copy link

esaesa commented Apr 25, 2023

Perfect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment