Last active
September 14, 2022 11:16
-
-
Save danielbitzer/f050ce39dff6c013a7bae86a9c8f018f to your computer and use it in GitHub Desktop.
AutomateWoo Refer A Friend - Change referral coupon length
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 | |
// 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