apply_filters( 'check_password', bool $check, string $password, string $hash, string|int $user_id )
Filters whether the plaintext password matches the encrypted password.
Parameters
- $check
-
(bool) Whether the passwords match.
- $password
-
(string) The plaintext password.
- $hash
-
(string) The hashed password.
- $user_id
-
(string|int) User ID. Can be empty.
Source
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/check_password