Use the snippet below. hopefully, it’s clear enough.
update_user_meta( $user_id, 'wrc_referrer_id', $referrer_user_id );
wp_referral_code_add_user_to_referrer_invite_list( $user_id, $referrer_user_id );
-
This reply was modified 4 years, 1 month ago by
shalior.
I was hoping for the same option too 🙂 I have tried to add snippet above “as it is” using code snippet plugin but either it does not work or I have missed where I can manually add referrals in the backend.
Looking forward for a bit more detailed instruction how to do it. Thank you !
@justaniceguy I agree the plugin should have this option.
@reggielee31 have you implemented it? I would appreciate a PR in github
anyways the plugin will have this feature, hopefully, next week.
@shalior Sorry for my late reply. I have implemented manual add referrals in backend. But there is no checking for if a user added, another user should unable to add.