Automattic\WooCommerce\Internal\StockNotifications

NotificationQuery::notification_exists_by_email │ public static │ WC 1.0

Check if a notification exists by email.

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

Хуков нет.

Возвращает

bool. True if the notification exists, false otherwise.

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

$result = NotificationQuery::notification_exists_by_email( $product_id, $email ): bool;
$product_id(int) (обязательный)
The product ID.
$email(строка) (обязательный)
The email address.

Код NotificationQuery::notification_exists_by_email() WC 11.2.2

public static function notification_exists_by_email( int $product_id, string $email ): bool {
	$data_store = self::load_data_store();

	return $data_store ? $data_store->notification_exists_by_email( $product_id, $email ) : false;
}