Home Assign user roles to users when register wordpress
Reply: 0

Assign user roles to users when register wordpress

user905 Published in May 27, 2018, 3:34 am

I am using 'Woo Discount Rules Pro' plugin to offer discounts for different user categories.

In the user registration page, I have included an input field to get the category of the user.

Although the category is saving inside the user profile, the role of the user is saved as 'customer' since I gave the default role as 'customer'.

What I need to achieve is save the relevant category of the user which user selects(i.e. school, uni, office) under 'User Role' when the user registers.

I tried to look into some plugins which perform this action when the user registers.

I found a plugin called Registration Magic and that would solve my issue. But unfortunately, it is not free and has to pay to unlock this specific feature.

Any suggestions how to accomplish this action with or without a plugin? Thank you!

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.309449 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO