Skip to content

Anti-Spam by CleanTalk integration SDK for WordPress plugins

Notifications You must be signed in to change notification settings

CleanTalk/antispam-integration-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  1. Attach antispam-integration-sdk/apbct_sdk.php in your main plugin file, for example like below
require_once plugin_dir_path( __FILE__ ) . 'antispam-integration-sdk/apbct_sdk.php';
  1. To show somewhere an independent form for saving the api-key, for example like below
echo apbct_sdk_render_key_form();
  1. Add Anti-Spam verification in the form processing method, for example like below
if ($response = apbct_sdk_check_is_spam($_POST)) {
    wp_send_json_error($response);
}

About

Anti-Spam by CleanTalk integration SDK for WordPress plugins

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •