Last active
September 14, 2022 11:16
-
-
Save danielbitzer/48fe8882c7ac347db108090da9d137f2 to your computer and use it in GitHub Desktop.
AutomateWoo Refer A Friend - Change referral coupon prefix
This file contains hidden or 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
<?php | |
// WARNING! If you change the prefix all existing coupons will no longer work. | |
// Default coupon prefix is 'REF' | |
add_filter( 'automatewoo/referrals/coupon_prefix', function(){ | |
return 'MY_PREFIX'; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
if i set this to empty string, it will not work on checkout. can you help me in this ?