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?


  • 2
    Yes. What have you tried already? Oh, and welcome to WordPress Stack Exchange!
    – fuxia
    Oct 4, 2012 at 9:43

2 Answers 2


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.

  • 1
    Thanks, finally I solve my problem with wp_insert_user.
    – Victor
    Oct 4, 2012 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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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