WordPress: How to assign a custom role to new user in wordpress from registration form

Hello i want to assign a custom user role in WordPress based on registration form for example i have teacher and student on registration form i have to put two check boxes so that if user select student he will be automatically assigned role of student instead of default one.so, how to do that? anyone with an idea can help please!

Thanks

Read more here: WordPress: How to assign a custom role to new user in wordpress from registration form

Leave a Reply

Your email address will not be published. Required fields are marked *