Manages all users (User objects) in ProcessWire.
Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the
Users class also inherits all the methods and properties of: PagesType and Wire.
|User||Add new User with the given name and return it.|
|bool||Delete the given User.|
|PageArray||Return the User(s) matching the the given selector query.|
|Page, NullPage or ||Get the user by name, ID or selector string|
|Returns the current user object|
|Get the 'guest' user account|
|bool||Save given User.|
|(nothing)||Set the current system user (the $user API variable)|
These methods are only useful for hooking and should not be called directly.
|(nothing)||Hook called just after a User is added|
|(nothing)||Hook called before a User is deleted|
|(nothing)||Hook called after a User is deleted|
|Hook called just before a user is saved|
$users->saved($user, array $changes)
|(nothing)||Hook called after a User has been saved|
Additional methods and properties
In addition to the methods and properties above, Users also inherits the methods and properties of these classes:
API reference based on ProcessWire core version 3.0.109