Last active
February 4, 2019 23:17
-
-
Save bekarice/f06bd93d527e49b64619 to your computer and use it in GitHub Desktop.
Replace Coupon: CODE with generic message in WooCommerce
This file contains 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
// Hides the coupon code applied by replacing it with a generic message | |
add_filter( 'woocommerce_cart_totals_coupon_label', 'skyverge_change_coupon_label' ); | |
function skyverge_change_coupon_label() { | |
echo 'Discount Applied'; | |
// Change this text to whatever you want | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment