php - How to assign custom role automatically on registration? -


I am using a hook form to override the registration process. I want to play a custom role that I have defined a new user. How do I get to do this?

I think it is possible to enter a users_roles table with a user ID and role ID?

Thanks

If every new user gets the role of a certified user by default So, do not just set the way you want for that role? In this way you do not need to mess with the database tables.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -