A WordPress-centric search engine for devs and theme authors



wp-includes/pluggable.php ›

Functions38
These functions can be replaced via plugins. If plugins do not redefine these functions, then these will be used instead.


Function Short description
auth_redirectChecks if a user is logged in, if not it redirects them to the login page.
cache_usersRetrieve info for user lists to prevent multiple queries by get_userdata()
check_admin_refererMakes sure that a user was referred from another admin page.
check_ajax_refererVerifies the Ajax request to prevent processing requests external of the blog.
get_avatarRetrieve the avatar `<img>` tag for a user, email address, MD5 hash, comment, or post.
get_userdataRetrieve user info by user ID.
get_user_byRetrieve user info by a given field
is_user_logged_inChecks if the current visitor is a logged in user.
wp_authenticateAuthenticate a user, confirming the login credentials are valid.
wp_check_passwordChecks the plaintext password against the encrypted Password.
wp_clear_auth_cookieRemoves all of the cookies associated with authentication.
wp_create_nonceCreates a cryptographic token tied to a specific action, user, user session, and window of time.
wp_generate_auth_cookieGenerate authentication cookie contents.
wp_generate_passwordGenerates a random password drawn from the defined set of characters.
wp_get_current_userRetrieve the current user object.
wp_hashGet hash of given string.
wp_hash_passwordCreate a hash (encrypt) of a plain text password.
wp_logoutLog the current user out.
wp_mailSend mail, similar to PHP's mail
wp_new_user_notificationEmail login credentials to a newly-registered user.
wp_nonce_tickGet the time-dependent variable for nonce creation.
wp_notify_moderatorNotifies the moderator of the site about a new comment that is awaiting approval.
wp_notify_postauthorNotify an author (and/or others) of a comment/trackback/pingback on a post.
wp_parse_auth_cookieParse a cookie into its components
wp_password_change_notificationNotify the blog admin of a user changing password, normally via email.
wp_randGenerates a random number.
wp_redirectRedirects to another page.
wp_safe_redirectPerforms a safe (local) redirect, using wp_redirect().
wp_saltGet salt to add to hashes.
wp_sanitize_redirectSanitizes a URL for use in a redirect.
wp_set_auth_cookieLog in a user by setting authentication cookies.
wp_set_current_userChanges the current user by ID or name.
wp_set_passwordUpdates the user's password with a new encrypted one.
wp_text_diffDisplays a human readable HTML representation of the difference between two strings.
wp_validate_auth_cookieValidates authentication cookie.
wp_validate_redirectValidates a URL for use in a redirect.
wp_verify_nonceVerify that correct nonce was used with time limit.
_wp_sanitize_utf8_in_redirectURL encode UTF-8 characters in a URL.