Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,892
- Creating & Extending
- 25,913
- Requests & Feedback
- 9,553
- Third Party Plugins
- 9,834
- Showcase
- 3,316
- Ideas
- 1,404
- Miscellaneous
- 9,183
-
I want this things in registration time. It anyone can check radio on registration time, i want to define that time role for both.
// Use the add_role() method to add the editor role to this user.
$user->add_role( ‘editor’ );
For this method, we can assign role to logged in user, i want it to at register time.
THanks,