• Resolved navjeetsingh

    (@navjeetsingh)


    Hello,
    Really like your plugin, just wondering if it is possible to assign the user to groups on registering? we are using wp_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 implement Groups_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

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Assigning user to groups or create group base on response’ is closed to new replies.