Login/Logout (category)
check_password_reset_key() | Checks (compares) the provided key for password recovery with the hash of that key in the database. |
get_password_reset_key() | Creates a key in the database for password recovery for the specified user and returns this key. |
is_login() | Checks if the user is on the WordPress admin login page. |
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. |
reset_password() | Resets (changes) the password of the specified user. |
wp_authenticate() | Checks the authorization data of the registered user (login and password) and authorizes it if the check was passed. |
wp_check_password() | Checks the plaintext password against the encrypted Password. |
wp_destroy_other_sessions() | Deletes all active sessions except the current one from the database for the current user. |
wp_get_password_hint() | Gets text with an explanation of how to create a strong password. |
wp_get_session_token() | Gets the current session token of the current user from the cookie |
wp_login_form() | Outputs the HTML code for the login form. |
wp_login_url() | Gets the login/authentication page URL: /wp-login.php |
wp_loginout() | Outputs a "login" link if the user is not authenticated and a "logout" link if authenticated. |
wp_logout() | Logs out. De-authenticates the user: destroys the current session and clears the authorization cookies. |
wp_logout_url() | Retrieves the logout URL. Returns the URL that allows the authorized user to log out of the site. |
wp_lostpassword_url() | Gets the URL (link) to the password recovery page. Commonly used in the template (template tag). |
wp_register() | Displays either the link to the dashboard ("Site Admin") if the user is logged in or "Register" link if the user is not logged in. |
wp_registration_url() | Gets the URL for the registration page: wp-login.php?action=register. |
wp_set_auth_cookie() | Authorizes (Log in) a user by ID. Sets authentication cookies based on the transmitted user ID. |
wp_set_password() | Updates the user's password with a new encrypted one. Updates the specified password in the database and resets the user's cache. |
wp_signon() | Authorizes the user by the specified login/email, password, and remember parameter. |