• Is there a way to reset the invite referral count? If a referred member cancels their account or deletes it, the referrer number should decrease to reflect current referrals. How would I go about that?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Delana Taylor

    (@delanataylor)

    @shalior

    Not sure if anyone is still around for this plugin but if so I have another question in addition to the one above about resetting the counts on cancellation.

    Is there a way to show what member role the referral belongs to?

    If Member A refers 6 people, some to roleA and some to roleB is there a way to show who went where?

    You’ve referred 6 members

    Joe Blow roleA
    Jane Doe roleB

    etc?

    Thanks. I like the plugin but a little concerned at the delays in support response. Hope all is well.

    Plugin Author shalior

    (@shalior)

    Is there a way to reset the invite referral count? If a referred member cancels their account or deletes it, the referrer number should decrease to reflect current referrals. How would I go about that?

    There is actually, I don’t believe it should be default behavior though.
    what plugin of yours has account cancelation? I want to get some context so I can send you a PHP snippet.

    Is there a way to show what member role the referral belongs to?

    It is also possible, where do you want to show this info? WordPress admin or the shortcode’s list? below snippet updates shortcode list with display name and roles

    add_filter('wp_referral_code_invited_user_text' , function ($user_login, $user_id){
                $user = get_userdata( $user_id );
                $roles = $user->roles;
                return  esc_html($user->display_name . ' ' . implode(',' , $roles));
            } , 10, 2);

    Thanks. I like the plugin but a little concerned at the delays in support response. Hope all is well.

    Thank you, Everthing is fine it’s just me being super busy.

    Thread Starter Delana Taylor

    (@delanataylor)

    Thanks so much!

    I am using it for 3 roles: free, vip and premium vip. Only vip and premium vip would be able to participate in the referral program so would receive the codes.

    By cancellation I mean if someone is referred by Joe Blow initially, the count goes up by 1. If Admin rejects the registration, or that user deletes their account and is no longer part of the system, it would go down by 1. And as I write that it’s because I am associating it with registrations and not referrals so I will retract that question, it doesn’t need to decrease. A referral is a referral whether they register or not so disregard that.

    As for the roles, the way I have the referral program is vip premium can refer / get credit for (paid) vip registrations. Vip can refer free sign ups to earn a vip premium upgrade. So being able to know what role referred what would be helpful if that is even doable. It would be shown in the user column dashboard.

    The way I have done it because there is only one referral link field is to put the free referral link for vips in the field and on a restricted page I added the link for the vip premium referrals and added the /?ref###### part to the end of it.

    But it’s one referral code that everyone gets. Is it possible to have a setting or code snippet so that the free registrations don’t also get a referral code generated wholesale. By restriction, I was asking if it was possible to set it so that only assigned roles get a referral code.

    Thanks again for the quick response. So far I am enjoying the simplicity of the plugin. I am just looking for the best way to adjust what it does for my individual needs with code.

    • This reply was modified 2 years, 6 months ago by Delana Taylor.
    Thread Starter Delana Taylor

    (@delanataylor)

    I didn’t see the rest of the question, but if it could be shown in the user dashboard column AND the individual shortcodes list that would be ideal so people can see that along with the names. (I found that code snippet on another question you answered so that came in handy! Showing their member role would be helpful too.)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Question about invite stats’ is closed to new replies.