Skip to content

Instantly share code, notes, and snippets.

@danielbitzer

danielbitzer/functions.php

Last active Jun 20, 2018
Embed
What would you like to do?
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