wpseek.com
A WordPress-centric search engine for devs and theme authors
wp-includes/pluggable.php › WordPress File
Functions37
› These functions can be replaced via plugins. If plugins do not redefine these
functions, then these will be used instead.
Function | Short description |
---|---|
auth_redirect | Checks if a user is logged in, if not it redirects them to the login page. |
cache_users | Retrieves info for user lists to prevent multiple queries by get_userdata(). |
check_admin_referer | Ensures intent by verifying that a user was referred from another admin page with the correct security nonce. |
check_ajax_referer | Verifies the Ajax request to prevent processing requests external of the blog. |
get_avatar | Retrieves the avatar `<img>` tag for a user, email address, MD5 hash, comment, or post. |
get_userdata | Retrieves user info by user ID. |
get_user_by | Retrieves user info by a given field. |
is_user_logged_in | Determines whether the current visitor is a logged in user. |
wp_authenticate | Authenticates a user, confirming the login credentials are valid. |
wp_check_password | Checks a plaintext password against a hashed password. |
wp_clear_auth_cookie | Removes all of the cookies associated with authentication. |
wp_create_nonce | Creates a cryptographic token tied to a specific action, user, user session, and window of time. |
wp_generate_auth_cookie | Generates authentication cookie contents. |
wp_generate_password | Generates a random password drawn from the defined set of characters. |
wp_get_current_user | Retrieves the current user object. |
wp_hash | Gets hash of given string. |
wp_hash_password | Creates a hash of a plain text password. |
wp_logout | Logs the current user out. |
wp_mail | Sends an email, similar to PHP's mail function. |
wp_new_user_notification | Emails login credentials to a newly-registered user. |
wp_nonce_tick | Returns the time-dependent variable for nonce creation. |
wp_notify_moderator | Notifies the moderator of the site about a new comment that is awaiting approval. |
wp_notify_postauthor | Notifies an author (and/or others) of a comment/trackback/pingback on a post. |
wp_parse_auth_cookie | Parses a cookie into its components. |
wp_password_change_notification | Notifies the blog admin of a user changing password, normally via email. |
wp_rand | Generates a random non-negative number. |
wp_redirect | Redirects to another page. |
wp_safe_redirect | Performs a safe (local) redirect, using wp_redirect(). |
wp_salt | Returns a salt to add to hashes. |
wp_sanitize_redirect | Sanitizes a URL for use in a redirect. |
wp_set_auth_cookie | Sets the authentication cookies based on user ID. |
wp_set_current_user | Changes the current user by ID or name. |
wp_set_password | Updates the user's password with a new hashed one. |
wp_text_diff | Displays a human readable HTML representation of the difference between two strings. |
wp_validate_auth_cookie | Validates authentication cookie. |
wp_validate_redirect | Validates a URL for use in a redirect. |
wp_verify_nonce | Verifies that a correct security nonce was used with time limit. |