跳到内容

Block Specific Spam Woo Orders

v0.80

wigster · 2020年11月4日 上架

A simple plugin to automatically block spam Woo orders that began in October 2020.

正在使用
1,000+
评分
5.0 / 5
累计下载
2.2 万
最近更新
2026年6月2日
10 条评价需要 WordPress 5.1+已测试到 7.0.9PHP 5.4+

贡献者

This plugin prevents a specific set of WooCommerce fake/spam orders.
Simply install and activate the plugin; there are no settings or tweaks to be made unless you want to add your own filters.
The plugin extends WooCommerce’s built-in checkout validations to check for a specific set of known spam email accounts and names. If triggered, the spam bot simply cannot checkout and importantly does not get to the account creation stage.
The names/emails it checks for would only be used by spam bots, so there is no need to worry about false positives.

If you’ve found this plugin useful, you can support my work by buying me a coffee at:
Buy Me a Coffee.

How to Use Custom Filters

Starting from plugin version 0.77, you can extend the list of blocked email domains and blocked customer names using custom filters.

Available Filters:

  1. BSSO_extra_domains: Add custom email domains to block during the checkout process.
  2. BSSO_extra_names: Add custom first names to block during the checkout process.

Example Usage

To use these filters, add code to your theme’s functions.php file or a custom plugin.

1. Blocking Additional Email Domains

If you want to block additional email domains like exampledomain.com and spamdomain.net, use the BSSO_extra_domains filter. Domains can be supplied with or without a leading @.

Code Example:

add_filter('BSSO_extra_domains', function () {
    return ['exampledomain.com', 'spamdomain.net'];
});

2. Blocking Additional First Names

If you want to block additional first names like spambot and faker, use the BSSO_extra_names filter.

Code Example:

add_filter('BSSO_extra_names', function () {
    return ['spambot', 'faker'];
});

Complete Example

Here’s how you might use both filters together:

Code Example:

add_filter('BSSO_extra_domains', function () {
    return ['exampledomain.com', 'spamdomain.net'];
});

add_filter('BSSO_extra_names', function () {
    return ['spambot', 'faker'];
});

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums