apply_filters( ‘check_password’, bool $check, string $password, string $hash, string|int $user_id )

In this article

Filters whether the plaintext password matches the hashed password.

Parameters

$checkbool
Whether the passwords match.
$passwordstring
The plaintext password.
$hashstring
The hashed password.
$user_idstring|int
Optional ID of a user associated with the password.
Can be empty.

Source

return apply_filters( 'check_password', $check, $password, $hash, $user_id );

Changelog

VersionDescription
6.8.0Passwords are now hashed with bcrypt by default.
Old passwords may still be hashed with phpass or md5.
2.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.