WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
This hook occurs 2 times in this file.
| Line | Code |
|---|---|
| 1873 | /** |
| 1874 | * Filter whether the plaintext password matches the encrypted password. |
| 1875 | * |
| 1876 | * @since 2.5.0 |
| 1877 | * |
| 1878 | * @param bool $check Whether the passwords match. |
| 1879 | * @param string $hash The hashed password. |
| 1880 | * @param int $user_id User ID. |
| 1881 | */ |
| 1882 | return apply_filters( 'check_password', $check, $password, $hash, $user_id ); |
| 1883 | } |
| 1884 | |
| 1885 | // If the stored hash is longer than an MD5, presume the |
| 1886 | // new style phpass portable hash. |
| 1887 | if ( empty($wp_hasher) ) { |
| 1888 | require_once( ABSPATH . 'wp-includes/class-phpass.php'); |
| 1889 | // By default, use the portable hash from phpass |
| 1890 | $wp_hasher = new PasswordHash(8, true); |
| 1891 | } |
| 1892 | |
| 1893 | $check = $wp_hasher->CheckPassword($password, $hash); |
| 1894 | |
| 1895 | /** This filter is documented in wp-includes/pluggable.php */ |
| 1896 | return apply_filters( 'check_password', $check, $password, $hash, $user_id ); |
| 1897 | } |
| 1898 | endif; |
| 1899 | |
| 1900 | if ( !function_exists('wp_generate_password') ) : |
| 1901 | /** |
| 1902 | * Generates a random password drawn from the defined set of characters. |
| 1903 | * |
| 1904 | * @since 2.5.0 |
| 1905 | * |