Add more fields to the Create Customer form

By default we allow you to specify a customers First Name, Last Name, Email Address and (optionally) User Role when creating a new customer. You may however want to capture other existing attributes (e.g. Phone Number), or custom new values (e.g. Pet Name), when you create the new customer (by pressing Create Customer on the form).

add phone number

To add new fields you will need to copy & paste the following code into your functions.php file (in your theme folder). The code adds the new Phone Number text field to the form, and saves the field value to the customers Billing Phone Number. You can customize the code to add and save any existing/custom fields that you'd like.


[the end]


Be the first to post a comment.

Add a comment