Register new user in the frontend

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?

Read More

Thanks

Related posts

Leave a Reply

2 comments

  1. 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.