WordPress at a glance
function is not described

PasswordHash::CheckPassword() public WP 1.0

{} It's a method of the class: PasswordHash{}

No Hooks.

Return

````. Null. Nothing.

Usage

$PasswordHash = new PasswordHash();
$PasswordHash->CheckPassword( $password, $stored_hash );
$password (required)
-
$stored_hash (required)
-

Code of PasswordHash::CheckPassword() WP 5.7

<?php
function CheckPassword($password, $stored_hash)
{
	if ( strlen( $password ) > 4096 ) {
		return false;
	}

	$hash = $this->crypt_private($password, $stored_hash);
	if ($hash[0] == '*')
		$hash = crypt($password, $stored_hash);

	return $hash === $stored_hash;
}