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?
I have a client that needs a custom registration form.
Someone can help me with this?
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.