READ FIRST: This code needs to be added at the end of the functions.php file. If you are familiar with editing functions.php, feel free to continue reading. If you haven’t done this before, adding this code in the wrong place might bring the site down and the only way to access it is by editing functions.php file again via FTP. Feel free to contact us if you need help!
By default, if a customer refers someone, they will receive a single coupon as a reward. However, if you want to keep rewarding a customer as long as the referral is renewing their subscription, you can do so by adding the code below to your functions.php file:
remove_filter( 'wcs_renewal_order_meta_query', 'gens_prevent_referral_copying', 10, 3 );
If you add this code, every time the referral pays the subscription, the customer will receive a new coupon, which means that they will be receiving rewards as long as their referral is renewed.
To learn more about recurring rewards check out our article: Using a Referral Plugin with WooCommerce Subscriptions