Snippets: Display Slider on WooCommerce Variations Instead of Lightbox

The reason WooCommerce variations do NOT use the slider on the single product post by default is because when you select a custom variation it will not alter the main image which many customers like.

// Enable slider on all woo products even variations
add_filter( 'wpex_woo_product_slider', '__return_true' );

Version Required:3.1.2+

Snippet Type: PHP

Posted Under: WooCommerce

All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)