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 hava a big form and when a user fill it I need to create a new user in Wordpress from there.

Its posible to create and user from the frontend and add some custom information?


share|improve this question
Yes. What have you tried already? Oh, and welcome to WordPress Stack Exchange! – toscho Oct 4 '12 at 9:43
up vote 2 down vote accepted

Yes, yes you can.

The relevant functions to do this are:

  • wp_create_user Creates a user given a user/pass/email
  • wp_insert_user Creates or updates a user given user/pass/email
  • add_user_meta Adds User Meta ( same as Post Meta/Custom fields but for users rather than posts )

You'll find examples on how to use those functions, and links to more possibly relevant functions. Use these functions in your form handling code on submission, make sure to escape all values entered.

share|improve this answer
Thanks, finally I solve my problem with wp_insert_user. – Victor Oct 4 '12 at 10:50

Or if you're looking for a top to bottom tutorial you can check out this one: http://www.cozmoslabs.com/1012-wordpress-user-registration-template-and-custom-user-profile-fields/

There are also plugins that solve this problem.

share|improve this answer

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.