How can I programmatically assign a role to a person?
-
This is a 2 part question.
1. How to I programmatically assigna role to a user?
2. How can I create a hook that assigns a role to a user on user registration?In my user registration, the user must select from a dropdown list, what kind of user he / she is. Then during the processing of the registration, I need to assign the corect role.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How can I programmatically assign a role to a person?’ is closed to new replies.