Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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?

Thanks

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

2 Answers

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
1  
Thanks, finally I solve my problem with wp_insert_user. –  Victor Oct 4 '12 at 10:50
add comment

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
add comment

Your Answer

 
discard

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.