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:

  1. The magic is on the way, please wait for a few seconds!
  2. The original one is
  3. Decoding the contact data, let us a few seconds to finish.

The following hooks can edit those phrases:

  1. apbct__ee_wait_for_decoding_text
  2. apbct__ee_original_email_text
  3. 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.

Mofided Phrase

Mofided Phrase

 

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.

 

Was this information helpful?

It would also be interesting

Copied to clipboard