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

In this article

Image for: In this article

Filters whether the plaintext password matches the hashed password.

Parameters

Image for: 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

Image for: Source
return apply_filters( 'check_password', $check, $password, $hash, $user_id );

Changelog

Image for: 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

Image for: User Contributed Notes

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