Now in the settings of personal account all fields are optional.
/account/settings/
- Can some fields be made mandatory?
- Is it possible to add the phone number field (optional/required)?
Now in the settings of personal account all fields are optional.
/account/settings/
// Required fields on a user account
add_filter(
'hivepress/v1/forms/user_update',
function( $form ) {
$form['fields']['image']['required'] = true;
$form['fields']['first_name']['required'] = true;
$form['fields']['last_name']['required'] = true;
$form['fields']['description']['required'] = true;
return $form;
},
1000
);
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.