Skip to content

Instantly share code, notes, and snippets.

mohsinoffline

View GitHub Profile
@mohsinoffline
mohsinoffline / woowaitlist-fix.php
Last active Jan 11, 2018
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 );
?>
You can’t perform that action at this time.