Skip to:
Content
Pages
Categories
Search
Top
Bottom

Auto-add new registered users to a certain member type


  • snoozer456
    Participant

    @snoozer456

    Hi there,

    I am trying to figure out a way to auto-add/auto-assign new registered users to the Member Type “Member”.

    I’ve scoured the net to figure out how to do this but it seems like I can’t find a solution. Thank you in advance.

Viewing 2 replies - 1 through 2 (of 2 total)

  • VibeThemes
    Participant

    @vibethemes

    USe this code snippet :

    add_action(‘register_new_user’,function($user_id){
    $default_member_Type = ‘XXXX’;
    bp_set_member_type($user_id, $default_member_Type);
    },1);

    p.s : We have this solution inbuilt in our plugin in a slightly different implementation


    snoozer456
    Participant

    @snoozer456

    @vibethemes

    Thank you for responding!

    Even though this code snippet makes sense, and I’ve implemented it in my functions.php. It doesn’t seem to be firing at all.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar