wppaste
WordPress

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

Since
2.5.0
Filters whether the plaintext password matches the encrypted password.

Parameters

$checkbool
Whether the passwords match.
$passwordstring
The plaintext password.
$hashstring
The hashed password.
$user_idstring|int
User ID. Can be empty.

Fired at · 2

  • wp-includes/pluggable.php:2670wp_check_password()
  • wp-includes/pluggable.php:2686wp_check_password()

Source

			 *			 * @param bool       $check    Whether the passwords match.			 * @param string     $password The plaintext password.			 * @param string     $hash     The hashed password.			 * @param string|int $user_id  User ID. Can be empty.			 */			return apply_filters( 'check_password', $check, $password, $hash, $user_id );		} 		/*		 * If the stored hash is longer than an MD5,		 * presume the new style phpass portable hash.		 */

History

Introduced in 2.5.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.7.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.