Created
October 5, 2021 11:53
-
-
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/)
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
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