Woocomemrce 3 Flex Slider Filter


/* ---------------------------------------------------------------------------
* Woocommerce Flex Slider Config
* --------------------------------------------------------------------------- */
function my_woocommerce_single_product_carousel_options_callback( ) {
  return array(
        'rtl'            => is_rtl(), //rtl
        'animation'      => 'slide', //slide or fade
        'smoothHeight'   => false,
        'directionNav'   => true,//add new dircetion control
        'controlNav'     => 'thumbnails',
        'slideshow'      => false,
        'animationSpeed' => 500,
        'animationLoop'  => false, // Breaks photoswipe pagination if true.
  );
}
add_filter( 'woocommerce_single_product_carousel_options', 'my_woocommerce_single_product_carousel_options_callback', 10, 3 );