Automattic\WooCommerce\Internal\StockNotifications

Notification::check_verification_key │ public │ WC 1.0

Check if the given key is a valid verification key.

This method checks if the key is valid by verifying the hash and checking the expiration time.

Метод класса: Notification{}

Хуков нет.

Возвращает

bool. True if the key is valid, false otherwise.

Использование

$Notification = new Notification();
$Notification->check_verification_key( $key ): bool;
$key(строка) (обязательный)
The key to check.

Код Notification::check_verification_key() WC 11.3.0

public function check_verification_key( string $key ): bool {
	return $this->verification_key_matches( $key ) && ! $this->is_verification_key_expired();
}