Skip to content

Instantly share code, notes, and snippets.

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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment