I’ve recently created my first ACF form using code such as:
// ACF Form settings
$settings = array(
'id' => 'contractor-form',
'post_id' => 'user_' . get_current_user_id(),
'field_groups' => array(418),
'post_content' => false,
'uploader' => 'basic',
'return' => '',
'submit_value' => __('Finish Registration', 'acf'),
'updated_message' => false,
'label_placement' => 'left',
'html_submit_button' => '<input type="submit" value="%s" />',
// Register our ACF form for usage in our template
acf_register_form( $settings );
…and then outputting the form later with
acf_form and everything is working fine; however was wondering if you can also use the form to update default user fields as well as ACF fields?
Reason I ask is because I want to collect the first name and last name, but don’t want to double up on the fields, but more importantly want to be able to update the users email address from the frontend as well.
Is something like this possible?
I really need an answer here. Please help.