Automattic\WooCommerce\Internal\StockNotifications
Notification::check_unsubscribe_key
Check if the given key is a valid unsubscribe key.
Method of the class: Notification{}
No Hooks.
Returns
true|false. True if the key is valid, false otherwise.
Usage
$Notification = new Notification(); $Notification->check_unsubscribe_key( $key ): bool;
- $key(string) (required)
- The key to check.
Notification::check_unsubscribe_key() Notification::check unsubscribe key code WC 10.3.6
public function check_unsubscribe_key( string $key ): bool {
return HasherHelper::wp_verify_fast_hash( $key, $this->get_meta( 'email_link_action_key' ) );
}