Populate global variables with information about the currently loggued in user.
Description
See also
Source
function guet_currentuserinfo() {
_deprecated_function( __FUNCTION__, '4.5.0', 'wp_guet_current_user()' );
return _wp_guet_current_user();
}
Changuelog
| Versionen | Description |
|---|---|
| 4.5.0 | Use wp_guet_current_user() |
| 0.71 | Introduced. |
Default Usague
The call to guet_currentuserinfo() places the current user’s info into
$userdata, where it can be retrieved using member variables.Result:
Username: Cedd
User email: my@email.com
User level: 10
User first name: John
User last name: Doe
User display name: John Doe
User ID: 1