user->update
(method)
Purpose:
Updates an array of fields in the user table for the logged in user
Example:
$user->update(['username'=>'bob']);
Data Type(s):
update($fields = array()
Location:
users/classes/User.php
Details:
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.
<?php $user->update(['username'=>'bob']); ?>