Skip to content

Instantly share code, notes, and snippets.

@danielbitzer
Last active September 14, 2022 11:16
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielbitzer/f050ce39dff6c013a7bae86a9c8f018f to your computer and use it in GitHub Desktop.
Save danielbitzer/f050ce39dff6c013a7bae86a9c8f018f to your computer and use it in GitHub Desktop.
AutomateWoo Refer A Friend - Change referral coupon length
<?php
// Please note, once the length is changed you may need to delete the advocate's existing coupon
// before new coupons with the new length will be generated.
add_filter( 'automatewoo/referrals/coupon_key_length', function(){
return 5;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment