@package: Users
-
functionwp_destroy_current_session()
Removes the current session token from the database.
-
functionwp_destroy_other_sessions()
Removes all but the current session token for the current user for the database.
-
functionwp_get_session_token()
Retrieves the current session token from the logged_in cookie.
-
functionwp_get_all_sessions()
Retrieves a list of sessions for the current user.
-
functionretrieve_password()
Handles sending a password retrieval email to a user.
-
Fires before errors are returned from a password reset request.
-
Fires before a new password is retrieved.
-
Fires before a new password is retrieved.
-
Filters whether to allow a password to be reset.
-
Fires when a password reset key is generated.
-
Filters the subject of the password reset email.
-
Filters the message body of the password reset mail.
-
Fires after the user’s Super Admin privileges are revoked.
-
functiongrant_super_admin()
Grants Super Admin privileges.
-
Fires before the user is granted Super Admin privileges.
-
Fires after the user is granted Super Admin privileges.
-
functionrevoke_super_admin()
Revokes Super Admin privileges.
-
Fires before the user’s Super Admin privileges are revoked.
-
Sends a confirmation request email when a change of user email address is attempted.
-
Filters the text of the email sent when a change of user email address is attempted.
-
functionnew_user_email_admin_notice()
Adds an admin notice alerting the user to check for confirmation request email after email address change.
-
hookmake_spam_user
Fires after the user is marked as a SPAM user.
-
hookmake_ham_user
Fires after the user is marked as a HAM user. Opposite of SPAM.
-
methodWP_User::for_blog()
Sets the site to operate on. Defaults to the current site.
-
Updates the maximum user level for the user.
-
methodWP_User::add_cap()
Adds capability and grant or deny access to capability.
-
methodWP_User::remove_cap()
Removes capability from user.
-
Removes all of the capabilities of the user.
-
methodWP_User::has_cap()
Returns whether the user has the specified capability.
-
hookuser_has_cap
Dynamically filter a user’s capabilities.