How to Automatically get CleanTalk Access Keys for a Large Number of WordPress Sites

 

 

CleanTalk allows automatizing the access key receiving process in the Anti-Spam and Security plugins. Such a feature will be helpful if you have a large number of websites. The entire process of receiving the Access Keys will be fully automatic which will speed up the activation of the spam protection on your websites.

 

How to Automatically Get Access Keys for WordPress Anti-Spam

 

Use the hook "apbct_is_get_api_key" to start the process of the receiving Access Key automatically after the plugin activation.

Put the following code in the file "function.php" of your website's active theme:

 

add_filter('apbct_is_get_api_key', function($_is_get_api_key){
   return true;
});

 

Please note that by default, the administrator email address is used to get Access Key. Use the hook "apbct_get_api_key_email" to change the email address:

 

add_filter('apbct_get_api_key_email', function($_admin_email){

   return 'your_email@here.com';

});

 

How to Automatically Get Access Keys for WordPress Security

 

Use the hook "spbc_is_get_api_key" to start the process of the receiving Access Key automatically after the plugin activation.

Put the following code in the file "function.php" of your website's active theme:

 

add_filter('spbc_is_get_api_key', function($_is_get_api_key){
   return true;
});

 

Please note that by default, the administrator email address is used to get Access Key. Use the hook "spbc_get_api_key_email" to change the email address:

 

add_filter('spbc_get_api_key_email', function($_admin_email){

   return 'your_email@here.com';

});

 

How to Apply Personal Settings to Multiple Sites at Once

 

You can create your own plugin settings templates and export/import them to your websites. Please read this guide to know how to use plugin templates:

https://cleantalk.org/help/plugin-template

 

CleanTalk Plugins Installation Guides

 

If you would like to install the plugins and get Access Keys in the standard way, use these guides:

 

 

If you haven't found the answer to your question, please, contact our support team: [ https://cleantalk.org/my/support/open ].

 

 

Was this information helpful?

It would also be interesting