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 |
|---|---|
| 2770 | * @since 6.8.0 Passwords are now hashed with bcrypt by default. |
| 2771 | * Old passwords may still be hashed with phpass or md5. |
| 2772 | * |
| 2773 | * @param bool $check Whether the passwords match. |
| 2774 | * @param string $password The plaintext password. |
| 2775 | * @param string $hash The hashed password. |
| 2776 | * @param string|int $user_id Optional ID of a user associated with the password. |
| 2777 | * Can be empty. |
| 2778 | */ |
| 2779 | return apply_filters( 'check_password', $check, $password, $hash, $user_id ); |
| 2780 | } |
| 2781 | endif; |
| 2782 | |
| 2783 | if ( ! function_exists( 'wp_password_needs_rehash' ) ) : |
| 2784 | /** |
| 2785 | * Checks whether a password hash needs to be rehashed. |
| 2786 | * |
| 2787 | * Passwords are hashed with bcrypt using the default cost. A password hashed in a prior version |
| 2788 | * of WordPress may still be hashed with phpass and will need to be rehashed. If the default cost |