wppaste
WordPress

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

Since
2.5.0, 6.8.0
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.

Fired at · 1

  • wp-includes/pluggable.php:2886wp_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  Optional ID of a user associated with the password.		 *                             Can be empty.		 */		return apply_filters( 'check_password', $check, $password, $hash, $user_id );	}endif; if ( ! function_exists( 'wp_password_needs_rehash' ) ) :	/**	 * Checks whether a password hash needs to be rehashed.

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.

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

About this page

Parsed data
Generated from the wordpress-develop 7.1.0 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.