Skip to content

Instantly share code, notes, and snippets.

@WpComet
Created September 17, 2021 10:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WpComet/4a802a56817448e3dd425b2efcad294f to your computer and use it in GitHub Desktop.
Save WpComet/4a802a56817448e3dd425b2efcad294f to your computer and use it in GitHub Desktop.
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