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.
| Line | Code |
|---|---|
| 2873 | * @since 6.8.0 Passwords are now hashed with bcrypt by default. |
| 2874 | * Old passwords may still be hashed with phpass or md5. |
| 2875 | * |
| 2876 | * @param bool $check Whether the passwords match. |
| 2877 | * @param string $password The plaintext password. |
| 2878 | * @param string $hash The hashed password. |
| 2879 | * @param string|int $user_id Optional ID of a user associated with the password. |
| 2880 | * Can be empty. |
| 2881 | */ |
| 2882 | return apply_filters( 'check_password', $check, $password, $hash, $user_id ); |
| 2883 | } |
| 2884 | endif; |
| 2885 | |
| 2886 | if ( ! function_exists( 'wp_password_needs_rehash' ) ) : |
| 2887 | /** |
| 2888 | * Checks whether a password hash needs to be rehashed. |
| 2889 | * |
| 2890 | * Passwords are hashed with bcrypt using the default cost. A password hashed in a prior version |
| 2891 | * of WordPress may still be hashed with phpass and will need to be rehashed. If the default cost |