We have received a number of emails about clients not seeing any result when blocking because their script was waiting for a different response format. That's why we added a custom response option.
How to add custom response
In order to add a custom response when an ajax request from a form is blocked, you need to place an array in the config.php file.
In this file you must add a variable with the obligatory name $ajax_response – it is important to name it that way. The variable should contain an array converted to JSON when the result is produced.
$ajax_response = array( 'test' => 'custom', 'company' => 'cleantalk');

Also, check the latest Universal Anti-Spam Plugin 2.6.0 Changelog (Sep 06 2022):
Fix: Fixed the message about the current version of the plugin and the update
Fix: Made the name of the variable more unique
Fix: SFW. SFW nets file clearing during update fixed.
Fix. Code. DS constant defining fixed.
Fix. Autoloader. Prevent to include SPBCT and UNIFORCE classes.
Upd: Visible fields process logic updated.
Mod: Added the ability to change the ajax response when blocked
New: Exclusions. Exclusion by hidden field implemented.
New. Hidden field exclusion.
New. Get latest release method.
It would also be interesting
- OOPSpam vs CleanTalk: Which Anti-Spam Solution Should You Choose?.ct-oopspam-page, .ct-oopspam-page p, .ct-oopspam-page li { line-height: 1.6; font-family:...
- CleanTalk vs Wordfence: Anti-Spam vs WordPress Security Compared.ct-wordfence-page, .ct-wordfence-page p, .ct-wordfence-page li { line-height: 1.6; ...
- CleanTalk vs Cloudflare: Anti-Spam vs Website Security Compared.ct-cloudflare-page, .ct-cloudflare-page p, .ct-cloudflare-page li { line-height: 1.6; ...