Core Function
View Source on Trac ↗ wp_check_password()
wp_check_password( mixed $password, mixed $hash, mixed $user_id = '' ) Checks a plaintext password against a hashed password.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $password string | Plaintext password. Required |
| $hash string | Hash of the password to check against. Required |
| (string | | int) $user_id Optional. ID of a user associated with the password. Required |
Return Value
(bool)
False, if the $password does not match the hashed password.
Function Information
Since Version
2.5.0
Source File
wp-includes/pluggable.php
Advertisement