Skip to content

Instantly share code, notes, and snippets.

mohsinoffline

Block or report user

Report or block mohsinoffline

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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.