Users (_user) (tag)

clean_user_cache()

Clears the entire cache of the specified user.

current_user_can()

Whether the current user has a specific capability.

delete_user_option()

Deletes user metadata on a site-wide or network-wide basis.

get_current_user_id()

Get the current user's ID.

get_currentuserinfo()

Sets the global variable $current_user, which contains the data of the currently logged-in user.

get_edit_user_link()

Gets the URL of the user's profile page in the admin panel.

get_user()

Gets a user object based on its numeric ID.

get_user_by()

Gets the user by the specified field and the value of this field (by ID, login, mail).

get_user_option()

Gets the specified user option. The option will relate to the site user in the network (for multisite installations) or just to the user.

get_userdata()

Retrieve user data by user ID as WP_User object.

get_users()

Gets users according to the passed parameters.

is_user_logged_in()

Checks if the user is authorized (if the user has logged in with their username). Returns true if the user is authorized and false if not. Conditional tag.

update_user_status()

Updates the user status in the database. For multisites.

wp_create_user()

A simpler way of inserting a user into the database.

wp_destroy_other_sessions()

Deletes all active sessions except the current one from the database for the current user.

wp_get_current_user()

Retrieve the current authorized user data (WP_User object). Sets current user, if not set yet.

wp_insert_user()

Creates a WordPress user in the Database.

wp_list_users()

Outputs/gets a list of users' display names from the site in a simple or LI list format. A number of parameters can be specified for selection.

wp_send_new_user_notifications()

Notifies the site administrator by email about the registration of a new user, and also sends the user an email with their login and password for authentication.

wp_set_current_user()

Changes the current user by ID or name. The function does not authorize the user but changes the global variable $current_user and its associated variables.

wp_update_user()

Update a user data in the database. Work with both tables wp_usermeta and wp_users.

WP_User{}

WordPress class that works with a single user: allows you to get user data, remove/add capabilities, etc.