WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to allow visitors to register to my site. I want to add tax ID field in the form. Upon submission, I want to check if the user belongs to a list (which has been imported in a custom table)and if yes, assign him a role.

How do you propose I should handle all that?


share|improve this question
Will all of the users on the list be the same role? – fdsa Aug 13 '12 at 1:25
No, some users a good customers and hence get a high role while some other users get a lower role. – p.a. Aug 13 '12 at 12:40

This is an interesting area to work through ...

If you have the user's tax id and you know the role they need, then why not pre-register them and then send them an invite to login?

From my experience with WordPress, it's easier to bulk add users and have them partial registered. You can import users with a plugin like this.

You may already have read .. there is a bit of a post on WordPress.org about having 2 registration forms ... one form will change the users role after registration.

If everyone who registers has to be an 'author' or have special privileges, then change the default role from Subscriber to Author (WordPress Admin > Settings ) enter image description here

share|improve this answer
Thanks for the answer. Sorry no, my users prefer the approach outlined in my original question. – p.a. Aug 12 '12 at 19:05
Thanks for the reference, though, the submission with the GET parameter and the update of the user's meta field is a neat trick. Thanks. – p.a. Aug 13 '12 at 6:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.