Assigning user to groups or create group base on response
-
Hello,
Really like your plugin, just wondering if it is possible to assign the user to groups on registering? we are usingwp_authenticate_user
to register the user with jwt auth wp_rest_request to allow users to be able to login if they have a valid token, the token returns a “project_id” let say the project id is “new_york” is it possible to assign a group to the user while login in to that group matching the project_id from the token? how can we implementGroups_User_Group::create( array( 'user_id' => $user_id, 'group_id' => $group_id ) );
and if the group does not exists is there a hook or filter available where it creates a new group based on the project id and assign user to the respective groups?Thank you
- The topic ‘Assigning user to groups or create group base on response’ is closed to new replies.