Hello,
I want to make the First name and Last name required in account setting?. How I can do that? I tried the bellow code but it is not working:
add_filter(
'hivepress/v1/forms/user_update',
function( $form ) {
$form['fields']['first_name']['required'] = true;
$form['fields']['last_name']['required'] = true;
return $form;
},
1000
);
I have placed the code in Appearance > Customize > Additional CSS.
I am using hivepress and hivetask theme.