add_filter( 'woo_variation_swatches_global_ajax_variation_threshold_max', 'woo_variation_swatches_global_ajax_variation_threshold_max_edit', 10, 2 ); function woo_variation_swatches_global_ajax_variation_threshold_max_edit( $size, $product ){ return 700; }