written by :
Grg Ugene
Not everyday scenario, but sometimes you would like to have a custom message when the coupon is applied to your woocommerce shop. Straight to the code. Here, we are applying a filter hook, to change the woocommerce default “Coupon applied successfully” message. We are hooking up a custom function that checks if the $msg_code is…