I have a client that needs a custom registration form.
- I need to make a custom design on this page
- I need to add custom fields like First Name, Company, Phone, etc.
Someone can help me with this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A better place to ask WordPress questions is probably on WordPress Answers. Anyhoo, if you want to solve this without plugins, you need three things:
When you have these three parts in place, you can do the following in your Page Template:
Now, when you want to retrieve the stuff you’ve stored, you need to know whether the information is within the User object itself or in metadata. To retrieve the first and last name (of a logged-in user):
To retrieve the company name (of a logged-in user):
That’s the basic gist of it. There’s still a lot of stuff missing here, like validation, error message output, the handling of errors occurring within the WordPress API, etc. There’s also some important TODO’s that you have to take care of before the code will even work. The code should probably also be split into several files, but I hope this is enough to get you started.