WooCommerce Subscription - recurrent rewards

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 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 user refers someone, he will receive a single coupon as a reward, but if you want to keep rewarding a user as long as a referral is renewing his subscription, you can do so by adding the below code to your functions.php file:

remove_filter( 'wcs_renewal_order_meta_query', 'gens_prevent_referral_copying', 10, 3 );

If you add this code, each time the referral pays the subscription, the user will receive a new coupon, which means that he will be receiving rewards as long as his referral is renewing.

Still need help? Contact Us Contact Us