Automattic\WooCommerce\Internal\StockNotifications
NotificationQuery::notification_exists_by_email
Check if a notification exists by email.
Method of the class: NotificationQuery{}
No Hooks.
Returns
bool. True if the notification exists, false otherwise.
Usage
$result = NotificationQuery::notification_exists_by_email( $product_id, $email ): bool;
- $product_id(int) (required)
- The product ID.
- $email(string) (required)
- The email address.
NotificationQuery::notification_exists_by_email() NotificationQuery::notification exists by email code WC 11.3.0
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;
}