Api\User\Object user()
Using our user() function will give you access to the active users information using class properties.
<?php // Prints the users ID echo user()->id; // Prints the users email echo user()->email; |
Property | Type | Description | |
---|---|---|---|
id | int | Unique user ID#. | |
url | string | Permalink to users profile. | |
name | string | Full name.
| |
string | |||
name_link | string | HTML link to the users profile with wrapped around their name. | |
photo | array | An associative array of photos of the user. Available sizes: 50px, 120px, 200px & original Usage:
| |
photo_link | string | HTML link to a users profile wrapped around their profile image. | |
location | string | An associative array of a users location. |