Last active
May 21, 2020 13:01
-
-
Save iamsathyaseelan/f9b6251235e6889ecddbba5b6dd42cbe to your computer and use it in GitHub Desktop.
easy_discount_issue_with_retainful.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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