Skip to content

Instantly share code, notes, and snippets.

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 iamsathyaseelan/f9b6251235e6889ecddbba5b6dd42cbe to your computer and use it in GitHub Desktop.
Save iamsathyaseelan/f9b6251235e6889ecddbba5b6dd42cbe to your computer and use it in GitHub Desktop.
easy_discount_issue_with_retainful.php
add_filter('rnoc_recover_cart_before_validate_coupon', 'rnoc_recover_cart_before_validate_coupon');
function rnoc_recover_cart_before_validate_coupon($code) {
if (substr($code, 0, 5) === "wccs_") {
return null;
}
return $code;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment