The $user API variable is a type of page representing the current user, and the User class is Page type used for all users.
Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the User
class also inherits all the methods and properties of: Page, WireData and Wire.
Common
Access
Languages
Name | Return | Summary | |
---|---|---|---|
$user->language | Language | User language, applicable only if LanguageSupport installed. | |
$user->setLanguage() $user->setLanguage($language) $user->setLanguage($language) | self | Set language for user (quietly) |
Additional methods and properties
In addition to the methods and properties above, User also inherits the methods and properties of these classes:
API reference based on ProcessWire core version 3.0.200