https://github.com/cleantalk/antispam-integration-sdk
Anti-Spam by CleanTalk integration SDK for WordPress plugins
https://github.com/cleantalk/antispam-integration-sdk
Last synced: 9 months ago
JSON representation
Anti-Spam by CleanTalk integration SDK for WordPress plugins
- Host: GitHub
- URL: https://github.com/cleantalk/antispam-integration-sdk
- Owner: CleanTalk
- Created: 2025-02-10T11:59:23.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-04-24T14:22:58.000Z (10 months ago)
- Last Synced: 2025-04-24T14:33:49.998Z (10 months ago)
- Language: PHP
- Homepage:
- Size: 26.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Anti-Spam by CleanTalk integration SDK for WordPress plugins
## How to use summary
* Clone this SDK to your plugin
* Include `apbct_sdk.php` to your plugin
* Add the key setting form to your plugin settings
* Add verification in the form processing method
## How to use
1) Clone this SDK and place directory `antispam-integration-sdk` into your plugin directory, for example like below
```
your_plugin/
antispam-integration-sdk/
apbct_sdk.php
your-plugin.php
```
2) Attach `antispam-integration-sdk/apbct_sdk.php` in your main plugin file, for example like below
```php
require_once plugin_dir_path( __FILE__ ) . 'antispam-integration-sdk/apbct_sdk.php';
```
3) To show somewhere an independent form for saving the api-key, for example like below
```php
echo apbct_sdk_render_key_form();
```
4) Add Anti-Spam verification in the form processing method, for example like below
```php
if ($response = apbct_sdk_check_is_spam($_POST)) {
wp_send_json_error($response);
}
```