wp_update_user( ... )

Updates a user in the database.

Parameters:
  • $userdata array | object | WP_User