Skip to content

Instantly share code, notes, and snippets.

@mohsinoffline
mohsinoffline / woowaitlist-fix.php
Last active Jun 17, 2021
WooCommerce: Increase variation threshold to prevent AJAX
View woowaitlist-fix.php
<?php
function ww_ajax_variation_threshold( $default, $product ) {
return 50; // increase this number if needed
}
add_filter( 'woocommerce_ajax_variation_threshold', 'ww_ajax_variation_threshold', 10, 2 );
?>