Change the prefix before launching a referral program. Previously issued coupons that use the old prefix may no longer validate.
Developer note:
Add custom PHP in a small custom plugin or child theme, and test it on a staging site before production. This example requires ongoing maintenance when extension APIs change.
functions.php
<?php
add_filter( 'automatewoo/referrals/coupon_prefix', 'my_store_referral_coupon_prefix' );
/**
* Set the referral coupon prefix.
*
* @return string
*/
function my_store_referral_coupon_prefix() {
return 'REFER';
}