Skip to content

Instantly share code, notes, and snippets.

@spraveenitpro
Created June 19, 2015 04:10
Show Gist options
  • Save spraveenitpro/52007067f98b35a9a203 to your computer and use it in GitHub Desktop.
Save spraveenitpro/52007067f98b35a9a203 to your computer and use it in GitHub Desktop.
Custom message upon entering a valid coupon
// define the woocommerce_coupon_message callback
function filter_woocommerce_coupon_message( $msg, $msg_code, $instance )
{
$msg = "Yeah thanks!";
return $msg;
};
// add the filter
add_filter( 'woocommerce_coupon_message', 'filter_woocommerce_coupon_message', 10, 3 );
@rzdev
Copy link

rzdev commented Apr 11, 2019

thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment