Skip to content

Instantly share code, notes, and snippets.

@danielbitzer
Last active September 14, 2022 11:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielbitzer/48fe8882c7ac347db108090da9d137f2 to your computer and use it in GitHub Desktop.
Save danielbitzer/48fe8882c7ac347db108090da9d137f2 to your computer and use it in GitHub Desktop.
AutomateWoo Refer A Friend - Change referral coupon prefix
<?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';
});
@emranch31
Copy link

if i set this to empty string, it will not work on checkout. can you help me in this ?

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