• Resolved reggielee31

    (@reggielee31)


    I have try to add a function to manually add referrals in backend admin page.

    I would like to check the user who is not referral by other member.
    In the database have a wrc_invited_users but it is a coding. I don’t know how to translate to user id. Please advise.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author shalior

    (@shalior)

    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 2 years, 6 months 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 !

    Plugin Author shalior

    (@shalior)

    @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.

    Plugin Author shalior

    (@shalior)

    This is released.

    Thread Starter reggielee31

    (@reggielee31)

    @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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘mannually add referrals’ is closed to new replies.