Admin can easily create custom fields for customers while he is creating his account in the register form. While creating a custom field using Advance Custom Field, the admin needs to select ‘Customer Edits Allowed’ so that customer can use that custom field.
Admin needs to select User Role equals to Customer in the custom field location rules to make this setting work. After customers login, they can update the custom fields from the edit account page.
The supported field types of ACF are text, textarea, number, URL, select, checkbox, radio, file, email.
The plugin will work with ACF-free as well as PRO versions.
Now, the field is created for a customer. You can use the below ACF functions to display the value:
the_field(‘field_name’, ‘user_1’); // where 1 indicates user ID
echo get_field(‘field_name’, ‘user_1’);