Title: wp-includes/pluggable.php | Page 2 of 4 | Developer.WordPress.org

---

# File: wp-includes/pluggable.php

 * function[wp_hash_password()](https://developer.wordpress.org/reference/functions/wp_hash_password/)
 * Creates a hash of a plain text password.
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/wp_hash_password/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/wp_hash_password/#uses)
   | Source: [wp-includes/pluggable.php:2753](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/pluggable.php#L2753-L2817)
 * function[wp_check_password()](https://developer.wordpress.org/reference/functions/wp_check_password/)
 * Checks a plaintext password against a hashed password.
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/wp_check_password/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/wp_check_password/#uses)
   | Source: [wp-includes/pluggable.php:2843](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/pluggable.php#L2843-L2887)
 * hook[check_password](https://developer.wordpress.org/reference/hooks/check_password/)
 * Filters whether the plaintext password matches the hashed password.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/check_password/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/check_password/#uses)
   | Source: [wp-includes/pluggable.php:2886](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/pluggable.php#L2886-L2886)
 * function[wp_generate_password()](https://developer.wordpress.org/reference/functions/wp_generate_password/)
 * Generates a random password drawn from the defined set of characters.
 * Used by [22 functions](https://developer.wordpress.org/reference/functions/wp_generate_password/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/wp_generate_password/#uses)
   | Source: [wp-includes/pluggable.php:2964](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/pluggable.php#L2964-L2990)
 * hook[comment_moderation_subject](https://developer.wordpress.org/reference/hooks/comment_moderation_subject/)
 * Filters the comment moderation email subject.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/comment_moderation_subject/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/comment_moderation_subject/#uses)
   | Source: [wp-includes/pluggable.php:2176](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/pluggable.php#L2176-L2176)
 * hook[random_password](https://developer.wordpress.org/reference/hooks/random_password/)
 * Filters the randomly-generated password.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/random_password/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/random_password/#uses)
   | Source: [wp-includes/pluggable.php:2989](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/pluggable.php#L2989-L2989)
 * hook[comment_moderation_headers](https://developer.wordpress.org/reference/hooks/comment_moderation_headers/)
 * Filters the comment moderation email headers.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/comment_moderation_headers/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/comment_moderation_headers/#uses)
   | Source: [wp-includes/pluggable.php:2073](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/pluggable.php#L2073-L2073)
 * function[wp_rand()](https://developer.wordpress.org/reference/functions/wp_rand/)
 * Generates a random non-negative number.
 * Used by [7 functions](https://developer.wordpress.org/reference/functions/wp_rand/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/wp_rand/#uses)
   | Source: [wp-includes/pluggable.php:3009](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/pluggable.php#L3009-L3081)
 * function[wp_password_change_notification()](https://developer.wordpress.org/reference/functions/wp_password_change_notification/)
 * Notifies the blog admin of a user changing password, normally via email.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_password_change_notification/#used-by)
   | Uses [10 functions](https://developer.wordpress.org/reference/functions/wp_password_change_notification/#uses)
   | Source: [wp-includes/pluggable.php:2197](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/pluggable.php#L2197-L2257)
 * function[wp_new_user_notification()](https://developer.wordpress.org/reference/functions/wp_new_user_notification/)
 * Emails login credentials to a newly-registered user.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_new_user_notification/#used-by)
   | Uses [15 functions](https://developer.wordpress.org/reference/functions/wp_new_user_notification/#uses)
   | Source: [wp-includes/pluggable.php:2276](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/pluggable.php#L2276-L2428)
 * function[wp_nonce_tick()](https://developer.wordpress.org/reference/functions/wp_nonce_tick/)
 * Returns the time-dependent variable for nonce creation.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/wp_nonce_tick/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/wp_nonce_tick/#uses)
   | Source: [wp-includes/pluggable.php:2444](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/pluggable.php#L2444-L2457)
 * hook[nonce_life](https://developer.wordpress.org/reference/hooks/nonce_life/)
 * Filters the lifespan of nonces in seconds.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/nonce_life/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/nonce_life/#uses)
   | Source: [wp-includes/pluggable.php:2454](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/pluggable.php#L2454-L2454)
 * function[wp_verify_nonce()](https://developer.wordpress.org/reference/functions/wp_verify_nonce/)
 * Verifies that a correct security nonce was used with time limit.
 * Used by [15 functions](https://developer.wordpress.org/reference/functions/wp_verify_nonce/#used-by)
   | Uses [6 functions](https://developer.wordpress.org/reference/functions/wp_verify_nonce/#uses)
   | Source: [wp-includes/pluggable.php:2474](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/pluggable.php#L2474-L2523)
 * function[wp_notify_postauthor()](https://developer.wordpress.org/reference/functions/wp_notify_postauthor/)
 * Notifies an author (and/or others) of a comment/trackback/pingback on a post.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_notify_postauthor/#used-by)
   | Uses [23 functions](https://developer.wordpress.org/reference/functions/wp_notify_postauthor/#uses)
   | Source: [wp-includes/pluggable.php:1749](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/pluggable.php#L1749-L1992)
 * hook[comment_notification_recipients](https://developer.wordpress.org/reference/hooks/comment_notification_recipients/)
 * Filters the list of email addresses to receive a comment notification.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/comment_notification_recipients/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/comment_notification_recipients/#uses)
   | Source: [wp-includes/pluggable.php:1779](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/pluggable.php#L1779-L1779)
 * hook[comment_notification_notify_author](https://developer.wordpress.org/reference/hooks/comment_notification_notify_author/)
 * Filters whether to notify comment authors of their comments on their own posts.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/comment_notification_notify_author/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/comment_notification_notify_author/#uses)
   | Source: [wp-includes/pluggable.php:1802](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/pluggable.php#L1802-L1802)
 * hook[comment_notification_text](https://developer.wordpress.org/reference/hooks/comment_notification_text/)
 * Filters the comment notification email text.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/comment_notification_text/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/comment_notification_text/#uses)
   | Source: [wp-includes/pluggable.php:1972](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/pluggable.php#L1972-L1972)
 * hook[comment_notification_subject](https://developer.wordpress.org/reference/hooks/comment_notification_subject/)
 * Filters the comment notification email subject.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/comment_notification_subject/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/comment_notification_subject/#uses)
   | Source: [wp-includes/pluggable.php:1982](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/pluggable.php#L1982-L1982)
 * hook[comment_notification_headers](https://developer.wordpress.org/reference/hooks/comment_notification_headers/)
 * Filters the comment notification email headers.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/comment_notification_headers/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/comment_notification_headers/#uses)
   | Source: [wp-includes/pluggable.php:1867](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/pluggable.php#L1867-L1867)
 * function[wp_notify_moderator()](https://developer.wordpress.org/reference/functions/wp_notify_moderator/)
 * Notifies the moderator of the site about a new comment that is awaiting approval.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_notify_moderator/#used-by)
   | Uses [20 functions](https://developer.wordpress.org/reference/functions/wp_notify_moderator/#uses)
   | Source: [wp-includes/pluggable.php:2009](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/pluggable.php#L2009-L2186)
 * hook[comment_moderation_recipients](https://developer.wordpress.org/reference/hooks/comment_moderation_recipients/)
 * Filters the list of recipients for comment moderation emails.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/comment_moderation_recipients/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/comment_moderation_recipients/#uses)
   | Source: [wp-includes/pluggable.php:2063](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/pluggable.php#L2063-L2063)
 * hook[check_ajax_referer](https://developer.wordpress.org/reference/hooks/check_ajax_referer/)
 * Fires once the Ajax request has been validated or not.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/check_ajax_referer/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/check_ajax_referer/#uses)
   | Source: [wp-includes/pluggable.php:1447](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/pluggable.php#L1447-L1447)
 * hook[comment_moderation_text](https://developer.wordpress.org/reference/hooks/comment_moderation_text/)
 * Filters the comment moderation email text.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/comment_moderation_text/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/comment_moderation_text/#uses)
   | Source: [wp-includes/pluggable.php:2166](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/pluggable.php#L2166-L2166)
 * function[wp_redirect()](https://developer.wordpress.org/reference/functions/wp_redirect/)
 * Redirects to another page.
 * Used by [21 functions](https://developer.wordpress.org/reference/functions/wp_redirect/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/functions/wp_redirect/#uses)
   | Source: [wp-includes/pluggable.php:1489](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/pluggable.php#L1489-L1545)
 * hook[wp_redirect](https://developer.wordpress.org/reference/hooks/wp_redirect/)
 * Filters the redirect location.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_redirect/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_redirect/#uses)
   | Source: [wp-includes/pluggable.php:1500](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/pluggable.php#L1500-L1500)
 * hook[wp_redirect_status](https://developer.wordpress.org/reference/hooks/wp_redirect_status/)
 * Filters the redirect HTTP response status code to use.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_redirect_status/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_redirect_status/#uses)
   | Source: [wp-includes/pluggable.php:1510](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/pluggable.php#L1510-L1510)
 * function[wp_sanitize_redirect()](https://developer.wordpress.org/reference/functions/wp_sanitize_redirect/)
 * Sanitizes a URL for use in a redirect.
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/wp_sanitize_redirect/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/wp_sanitize_redirect/#uses)
   | Source: [wp-includes/pluggable.php:1557](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/pluggable.php#L1557-L1580)
 * function[wp_safe_redirect()](https://developer.wordpress.org/reference/functions/wp_safe_redirect/)
 * Performs a safe (local) redirect, using wp_redirect().
 * Used by [5 functions](https://developer.wordpress.org/reference/functions/wp_safe_redirect/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/functions/wp_safe_redirect/#uses)
   | Source: [wp-includes/pluggable.php:1632](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/pluggable.php#L1632-L1650)
 * function[wp_validate_redirect()](https://developer.wordpress.org/reference/functions/wp_validate_redirect/)
 * Validates a URL for use in a redirect.
 * Used by [7 functions](https://developer.wordpress.org/reference/functions/wp_validate_redirect/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/wp_validate_redirect/#uses)
   | Source: [wp-includes/pluggable.php:1669](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/pluggable.php#L1669-L1736)
 * hook[allowed_redirect_hosts](https://developer.wordpress.org/reference/hooks/allowed_redirect_hosts/)
 * Filters the list of allowed hosts to redirect to.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/allowed_redirect_hosts/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/allowed_redirect_hosts/#uses)
   | Source: [wp-includes/pluggable.php:1729](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/pluggable.php#L1729-L1729)

 [Previous Page](https://developer.wordpress.org/reference/files/wp-includes/pluggable.php/?output_format=md)

[1](https://developer.wordpress.org/reference/files/wp-includes/pluggable.php/?output_format=md)
2 [3](https://developer.wordpress.org/reference/files/wp-includes/pluggable.php/page/3/?output_format=md)
[4](https://developer.wordpress.org/reference/files/wp-includes/pluggable.php/page/4/?output_format=md)

 [Next Page](https://developer.wordpress.org/reference/files/wp-includes/pluggable.php/page/3/?output_format=md)