Hooks For Changing the Encode Contact Data Option Phrases
Since the 6.52 version of the Anti-Spam by Cleantalk plugin, it is possible to change some of the Encode Contact Data option phrases. There are three phrases available for modification via hooks. These phrases appear in a modal window during the decoding process:
- The magic is on the way, please wait for a few seconds!
- The original one is
- Decoding the contact data, let us a few seconds to finish.
The following hooks can edit those phrases:
- apbct__ee_wait_for_decoding_text
- apbct__ee_original_email_text
- apbct__ee_decoding_process_text
To change the phrases add the hook handlers to your functions.php file.
The example:
add_filter('apbct__ee_wait_for_decoding_text', function ($_original_text) {
return 'Other text for `wait for decoding`';
});
add_filter('apbct__ee_decoding_process_text', function ($_original_text) {
return 'Other text for `decoding process`';
});
add_filter('apbct__ee_original_email_text', function ($_original_text) {
return 'Other text for `original email`';
});
The modified phrases are shown in the screenshots.
Encoding Contact Data with a Shortcode and Hook for Third-Party Plugins
Apart from the Encode Contact Data option you use the CleanTalk shortcode and hook features to encode and protect contact data. The guide is here.
It would also be interesting
- Anti-Flood and Anti-Crawler(Bot Protection) for WebSItes by CleanTalkCleanTalk Anti-Flood and Anti-Crawler(Bot protection) Options CleanTalk Anti-Crawler(Bot Protection) CleanTalk...