开发者 | spampatrol |
---|---|
更新时间 | 2023年6月9日 09:16 |
PHP版本: | 7.0+ 及以上 |
WordPress版本: | 6.2 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
spampatrol_analyze
helper function for any custom integration that needs it.
```php
<?php
spampatrol_analyze( array(
'content' => '', // Text content to be analyzed (required)
'visitorIp' => '', // IP address of the end-user/visitor (optional)
'expectedCountries' => array(
'US',
'CA','GB',
), // optional list of ISO 639-1 counties to indicate where submissions are expected to originate from
'expectedLanguages' => array(
'en',
'es',
), // optional list of ISO 3166-1 alpha-2 languages to indicate the language expected for content
) );
```We spend a lot of time ensuring that the detection accuracy is as high as possible but there's always a small chance of a false positive depending on where you set your threshold. In general we recommend against discarding messages entirely. Instead messages should be sent to a spam only address or placed in your Spam/Junk folder and reviewed periodically.
Yes. If you are looking for a cleaner form experience to save end-users time and frustration SpamPatrol can replace other mechanisms. It's also fine to use it in addition to existing mechanisms you have in place.
The SpamPatrol plugin currently supports Contact Form 7, Ninja Forms and Formidable Forms.