Skip to content

Instantly share code, notes, and snippets.

@claudiosanches
claudiosanches / functions.php
Last active September 24, 2024 17:55
WooCommerce - Change ajax variation threshold
function custom_wc_ajax_variation_threshold( $qty, $product ) {
return 10;
}
add_filter( 'woocommerce_ajax_variation_threshold', 'custom_wc_ajax_variation_threshold', 10, 2 );