Plugin Directory

Changeset 3012515


Ignore:
Timestamp:
12/20/2023 03:16:57 PM (2 years ago)
Author:
Wigster
Message:

Upgrading to 0.7 - rework checking logic and adding localisation to output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • block-specific-spam-woo-orders/trunk/woo-block-spam-orders.php

    r3012514 r3012515  
    3636    // Compare users email domain with our list of blocked email domains:
    3737    foreach ($blocked_email_domains as $blocked_email_domain) {
    38       // If a blocked email domain exists in the users email, return spam=true;
     38      // If a blocked email domain exists in the users billing email, return spam=true;
    3939      if (strpos($billing_email, $blocked_email_domain) !== false) {
    4040        $is_a_spam_order = true;
     
    4242    }
    4343    foreach ($blocked_names as $blocked_name) {
    44       // If a blocked Name exists in the users email, return true;
     44      // If a blocked Name exists in the users billing first name, return spam=true;
    4545      if (strpos($billing_first_name, $blocked_name) !== false) {
    4646        $is_a_spam_order = true;
Note: See TracChangeset for help on using the changeset viewer.