Skip to content

Instantly share code, notes, and snippets.

@webtoffee-git
Created October 5, 2021 11:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webtoffee-git/c377df5ccea4708c49369cf8f06bc860 to your computer and use it in GitHub Desktop.
Save webtoffee-git/c377df5ccea4708c49369cf8f06bc860 to your computer and use it in GitHub Desktop.
To hide”Congrats you got a free gift” message - Smart Coupon for WooCommerce (https://www.webtoffee.com/product/smart-coupons-for-woocommerce/)
add_filter('wt_smart_coupon_free_product_added_message', 'wt_sc_free_product_added_message', 10, 3);
function wt_sc_free_product_added_message($message, $product_id, $coupon_code)
{
return ''; //you can add any custom message here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment