Unable to update user meta
-
I’m trying to update the first name and the nickname / displayname of a user after he has logged in via hybridauth. Although I’m able to get all necessary information the user does not update its first name and nickname.
$userdata = array( 'ID' => $user_id, 'user_email' => $user_email, 'display_name' => $display_name, 'user_nicename' => $display_name, 'first_name' => $display_name, 'user_url' => $hybridauth_user_profile->profileURL, 'description' => $hybridauth_user_profile->description, ); wp_update_user( $userdata ); update_user_meta($user_id, 'first_name', $display_name); update_user_meta($user_id, 'nickname', $display_name);
Any help would be very much appreciated.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Unable to update user meta’ is closed to new replies.