Skip to content

Instantly share code, notes, and snippets.

@bekarice
Last active February 4, 2019 23:17
Show Gist options
  • Save bekarice/f06bd93d527e49b64619 to your computer and use it in GitHub Desktop.
Save bekarice/f06bd93d527e49b64619 to your computer and use it in GitHub Desktop.
Replace Coupon: CODE with generic message in WooCommerce
// 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