Assign member type in registration process

  • Participant
    Level: Initiated
    Posts: 1
    Rousseau Antoine on #14770

    I have bought pro version of your “members type” plugin.
    When a new user is registred I change this rôle by custom function. But member type is not automatically changed (like define in options). (when I change rôle via dashboard member type is well assigned).

    I try to assign membertype manually with :

    bp_set_member_type($user_id, “subscriber”);

    with custom function.

    But that doesn’t work.

    When I add just this line in my functions.php file :

    bp_set_member_type( 11, “subscriber” );

    Nothing happen’s…

    Why ?

    Can you help me ?

    How to change membertype in php like rôle ?

  • Keymaster
    (BuddyDev Team)
    Posts: 24093
    Brajesh Singh on #14779

    Hi Rousseau,
    Thank you for purchasing the plugin.

    Since you are using the pro plugin, you can use the member type field to assign member type to users. Is there any issue with that?

    Also, if you do not want to use the field and want to assign using code, can you please post the complete code (including the hook it is attached to).

    Thank you

You must be logged in to reply to this topic.

This topic is: not resolved