Docs

Users

user_authed

Checks if the user is logged in and authorised. Returns true if there are, false if not.

user_authed_email

Returns the email address of the currently logged-in user. Not recommended for display usage.

user_authed_id

Returns the ID of the currently logged-in user.

user_authed_name

Returns the name of the currently logged-in user.

user_authed_role

Returns the role of the currently logged-in user. Can be administrator, editor, or user.

user_authed_role

Returns the real name of the currently logged-in user, as set in the admin panel.

Edit