Skip to content

Instantly share code, notes, and snippets.

@mohsinoffline
mohsinoffline / woowaitlist-fix.php
Last active October 9, 2021 09:13
WooCommerce: Increase variation threshold to prevent AJAX
<?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 );
?>