wow, that was easy. Really sorry, haven’t found this.
what I just don’t get to work is the display name. So I have first and last name, but how will it take this for display name?
here is a line to modify it, but it will always show the username, not the name which is set of first and last name
COPY CODE
//you can modify that line to change the displayed name to something else than the nickname
$wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->users} SET display_name = %s WHERE ID = %d", $nickname, $user_id ) );
I tried that:
COPY CODE
//you can modify that line to change the displayed name to something else than the nickname
$wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->users} SET display_name = %s WHERE ID = %d", $firstname, $lastname, $user_id ) );
thank you!!