[WordPress] 外掛分享: Block Specific Spam Woo Orders

首頁外掛目錄 › Block Specific Spam Woo Orders
WordPress 外掛 Block Specific Spam Woo Orders 的封面圖片
1,000+
安裝啟用
★★★★★
5/5 分(10 則評價)
106 天前
最後更新
問題解決
WordPress 5.1+ PHP 5.4+ v0.79 上架:2020-11-03

內容簡介

這個外掛能夠避免一組特定的 WooCommerce 假訂單/垃圾訂單。
只需安裝並啟用外掛,不需要進行任何設置或微調。
該外掛擴展了 WooCommerce 內建的結帳驗證,以檢查特定一組已知的垃圾郵件帳戶和姓名,如果被觸發,垃圾機器人將無法結帳,重要的是,它不會到達帳戶創建階段。
它正在檢查的名字/電子郵件只會被垃圾機器人使用,因此不需要擔心誤報。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.79) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Block Specific Spam Woo Orders」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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:

BSSO_extra_domains: Add custom email domains to block during the checkout process.
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.
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'];
});

Version Compatibility
Please note that these filters are only available starting from version 0.77 of the plugin. Ensure your plugin is updated to at least this version to use the custom filters.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon