Support

Account

Home Forums General Issues Update_field not working for front end user creation Reply To: Update_field not working for front end user creation

  • 
    // ensure you get the ID value here
    $incident = get_field('related_incident', $post_id, false);
    
    ...
    
    $user_id = wp_insert_user($userdata);
    update_field('field_602ce62b11720', $incident, 'user_'.$user_id);