Changeset 3012515
- Timestamp:
- 12/20/2023 03:16:57 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
block-specific-spam-woo-orders/trunk/woo-block-spam-orders.php
r3012514 r3012515 36 36 // Compare users email domain with our list of blocked email domains: 37 37 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; 39 39 if (strpos($billing_email, $blocked_email_domain) !== false) { 40 40 $is_a_spam_order = true; … … 42 42 } 43 43 foreach ($blocked_names as $blocked_name) { 44 // If a blocked Name exists in the users email, returntrue;44 // If a blocked Name exists in the users billing first name, return spam=true; 45 45 if (strpos($billing_first_name, $blocked_name) !== false) { 46 46 $is_a_spam_order = true;
Note: See TracChangeset
for help on using the changeset viewer.