Anti-Spam, Spam FireWall by CleanTalk icon
Security

Anti-Spam, Spam FireWall by CleanTalk hooks reference

  • By CleanTalk Inc
  • v6.92 New
  • Updated

Anti-Spam, Spam FireWall by CleanTalk 6.92 has 6 actions and 28 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.

How to use these hooks

Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.

functions.phpyour child theme
// Run your own code when Anti-Spam, Spam FireWall by CleanTalk fires an action
add_action( 'apbct_before_returning_settings', function( $incoming_settings ) {
	// Your code runs here.
}, 10, 1 );

// Change a value Anti-Spam, Spam FireWall by CleanTalk is about to use
add_filter( 'apbct__filter_post', function( $_POST ) {
	// Change $_POST here.
	return $_POST;
}, 10, 1 );

Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.

All hooks

  • inc/cleantalk-public-integrations.php line 108 · used in 128 places
    /**
     * Filter for POST
     */
    apply_filters( 'apbct__filter_post', $_POST );
  • inc/cleantalk-settings.php line 3054 · used in 2 places
    /**
     * Filters the email to get Access key
     */
    apply_filters( 'apbct_get_api_key_email', $admin_email );
  • inc/cleantalk-admin.php line 112 · used in 2 places
    /**
     * Hook. List of allowed user roles for the Dashboard widget.
     * add_filter('apbct_hook_dashboard_widget_allowed_roles_list',
     * function($roles_list) { $roles_list[] = 'editor'; return $roles_list; });
     */
    apply_filters( 'apbct_hook_dashboard_widget_allowed_roles_list', array('administrator') );
  • lib/Cleantalk/ApbctWP/ContactsEncoder/ContactsEncoder.php line 1094
    /**
     * Filter for the text of the decoding process
     */
    apply_filters( 'apbct__ee_decoding_process_text', __('Please wait a few seconds while we decode the contact data.', 'cleantalk-spam-protect') );
  • lib/Cleantalk/ApbctWP/ContactsEncoder/ContactsEncoder.php line 1081
    /**
     * Filter for the text of the original email
     */
    apply_filters( 'apbct__ee_original_email_text', __('The complete one is', 'cleantalk-spam-protect') );
  • lib/Cleantalk/ApbctWP/ContactsEncoder/ContactsEncoder.php line 1068
    /**
     * Filter for the text of the decoding process
     */
    apply_filters( 'apbct__ee_wait_for_decoding_text', __('The magic is on the way!', 'cleantalk-spam-protect') );
  • inc/cleantalk-settings.php line 2761
    /**
     * Triggered before returning the settings
     */
    do_action( 'apbct_before_returning_settings', $incoming_settings );
  • inc/cleantalk-pluggable.php line 2385
    /**
     * Filter CSP nonce for CleanTalk inline scripts.
     */
    apply_filters( 'apbct_csp_nonce', '' );
  • lib/Cleantalk/Common/Firewall/FirewallModule.php line 110
    /**
     * Use something like that to set a cookie before die (useful for cache 403
     * errors).
     */
    do_action( 'apbct_firewall_before_die', $result );
  • lib/Cleantalk/ApbctWP/Activator.php line 186
    /**
     * Filters a getting Access key flag
     */
    apply_filters( 'apbct_is_get_api_key', false );
  • lib/Cleantalk/ApbctWP/CleantalkSettingsTemplates.php line 290
    /**
     * $blog_ids is an array of the IDs to apply settings for these blogs
     */
    apply_filters( 'apbct_template_save_to', array() );
  • lib/Cleantalk/ApbctWP/CleantalkListTable.php line 485
    /**
     * Filters the items in the bulk actions menu of the list table.
     */
    apply_filters( "bulk_actions-{$this->screen->id}", $this->_actions );
  • inc/cleantalk-admin.php line 742
    /**
     * Adding common parent node for both products APBCT/SPBCT
     */
    apply_filters( 'cleantalk_admin_bar__add_icon_to_parent_node', '' );
  • inc/cleantalk-admin.php line 745
    /**
     * Adding common parent node for both products APBCT/SPBCT
     */
    apply_filters( 'cleantalk_admin_bar__parent_node__after', '' );
  • inc/cleantalk-admin.php line 743
    /**
     * Adding common parent node for both products APBCT/SPBCT
     */
    apply_filters( 'cleantalk_admin_bar__parent_node__before', '' );
  • lib/Cleantalk/ApbctWP/CleantalkListTable.php line 604
    /**
     * Filters whether to remove the 'Months' drop-down from the post list table.
     */
    apply_filters( 'disable_months_dropdown', false, $post_type );
  • lib/Cleantalk/ApbctWP/CleantalkListTable.php line 1099
    /**
     * Filters the name of the primary column for the current list table.
     */
    apply_filters( 'list_table_primary_column', $default, $this->screen->id );
  • lib/Cleantalk/ApbctWP/CleantalkListTable.php line 1147
    /**
     * Filters the list table sortable columns for a specific screen.
     */
    apply_filters( "manage_{$this->screen->id}_sortable_columns", $sortable_columns );
  • lib/Cleantalk/ApbctWP/CleantalkListTable.php line 648
    /**
     * Filters the 'Months' drop-down results.
     */
    apply_filters( 'months_dropdown_results', $months, $post_type );
  • lib/Cleantalk/ApbctWP/CleantalkListTable.php line 616
    /**
     * Filters to short-circuit performing the months dropdown query.
     */
    apply_filters( 'pre_months_dropdown_query', false, $post_type );
  • rest_url

    filter
    inc/cleantalk-pluggable.php line 238
    /**
     * Filters the REST URL.
     */
    apply_filters( 'rest_url', $url, $path, $blog_id, $scheme );
  • lib/Cleantalk/ApbctWP/CleantalkListTable.php line 415
    /**
     * Filters the list of available list table views.
     */
    apply_filters( "views_{$this->screen->id}", $views );
  • inc/cleantalk-ajax.php line 248 · used in 90 places
    do_action( 'apbct_skipped_request', __FILE__ . ' -> ' . __FUNCTION__ . '():' . __LINE__ . '(' . apbct_is_skip_request(true) . ')', $_POST );
  • inc/cleantalk-pluggable.php line 787 · used in 4 places
    apply_filters( 'active_plugins', get_option('active_plugins') );
  • inc/cleantalk-admin.php line 410
    do_action( 'apbct__check_compatibility' );
  • lib/Cleantalk/ApbctWP/ContactsEncoder/ContactsEncoder.php line 122
    apply_filters( 'apbct_email_encoder_attribute_exclusions_signs', $this->helper->getDefaultAttributeExclusionsSigns() );
  • lib/Cleantalk/ApbctWP/ContactsEncoder/Exclusions/ExclusionsService.php line 239
    apply_filters( 'apbct_email_encoder_content_exclusions_signs', $this->content_exclusions_signs );
  • inc/cleantalk-public.php line 826
    do_action( 'apbct_pre_block_page', $ct_comment );
  • inc/cleantalk-settings.php line 2216
    apply_filters( 'apbct_settings_action_buttons', array() );
  • cleantalk.php line 1165
    apply_filters( 'apbct_sfw_update__check_requirements', apbct_sfw_update__check_requirements() );
  • lib/Cleantalk/ApbctWP/ContactsEncoder/ContactsEncoder.php line 130
    apply_filters( 'apbct_skip_email_encoder_on_attribute_list', array() );
  • lib/Cleantalk/ApbctWP/ContactsEncoder/Exclusions/ExclusionsService.php line 178
    apply_filters( 'apbct_skip_email_encoder_on_uri_chunk_list', array() );
  • inc/cleantalk-admin.php line 733
    do_action( 'cleantalk_admin_bar__prepare_counters' );
  • lib/Cleantalk/ApbctWP/CleantalkUpgrader.php line 104
    apply_filters( 'upgrader_package_options', $options );

Generated from Anti-Spam, Spam FireWall by CleanTalk's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Can't find the right hook?

We can build the customisation for you. Describe what you need: