Purpose
Updates an array of fields in the user table for the logged in user
Location
users/classes/User.php
Parameters
This function does not take any arguments
Example
$user->update(['username'=>'bob']);
Further Documentation:
This is a (slightly) quicker way to update user information. You can pass an array of information about the user and update in one step.
$user->update(['username'=>'bob']);