Automattic\WooCommerce\Internal\StockNotifications

Notification::check_unsubscribe_keypublicWC 1.0

Check if the given key is a valid unsubscribe key.

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

Хуков нет.

Возвращает

true|false. True if the key is valid, false otherwise.

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

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

Код Notification::check_unsubscribe_key() WC 10.5.2

public function check_unsubscribe_key( string $key ): bool {
	return HasherHelper::wp_verify_fast_hash( $key, $this->get_meta( 'email_link_action_key' ) );
}