Skip to content

Instantly share code, notes, and snippets.

@plugin-republic
Created January 13, 2023 07:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plugin-republic/6ce396fb933f916e67bfd118fbebc3aa to your computer and use it in GitHub Desktop.
Save plugin-republic/6ce396fb933f916e67bfd118fbebc3aa to your computer and use it in GitHub Desktop.
<?php
/**
* Disable add to cart validation for min/max
*/
function prefix_remove_wcmmqo_add_to_cart_validation() {
remove_filter( 'woocommerce_add_to_cart_validation', 'wcmmqo_add_to_cart_validation', 10, 5 );
}
add_action( 'init', 'prefix_remove_wcmmqo_add_to_cart_validation');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment