How to Add Registration Fields Based on User Roles in WooCommerce?

Adding Registration Fields Based on User Roles

For each registration field, you can now customize the information you want to collect based on the selected user roles. For example, you might want to ask for different business details for Wholesale customers compared to Retail customers. To carry out this functionality using the Custom User Registration Field plugin:

  • Go to WP Admin Panel > Registration Fields > Add New Field.
  • Locate “User Role Dependency”. Here, you can make fields dependable and limit them to selected user roles.
  • Is Dependable?: Checkmark to make the field dependable
  • Select User Roles: Select the user roles you want to display in this field. Leave empty to display fields for all. User roles mentioned here are:
    • Administrator
    •  Editor
    •  Author
    •  Contributor
    •  Subscriber
    •  Customer
    •  Shop manager
    •  Wholesale
    •  B2B
    •  Retailer
    •  Guest

Complete the remaining details for the registration form and click on Publish.