ActiveLayer Anti-Spam: Spam Protection for Forms & Comments 1.8.0 has 11 actions and 26 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.
// Run your own code when ActiveLayer Anti-Spam: Spam Protection for Forms & Comments fires an action
add_action( 'activelayer_protection_check_result', function( $api_result, $submission_id, $hash, $provider_slug, $meta ) {
// Your code runs here.
}, 10, 5 );
// Change a value ActiveLayer Anti-Spam: Spam Protection for Forms & Comments is about to use
add_filter( 'activelayer_integrations_funnelkit_submission_handler_block_message', function( $value ) {
// Change $value here.
return $value;
}, 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
-
activelayer_integrations_funnelkit_submission_handler_block_message
filter Copy link Customise this hook/** * This filter is documented in * src/Integrations/FunnelKit/SubmissionHandler.php */ apply_filters( 'activelayer_integrations_funnelkit_submission_handler_block_message', $this->get_sync_block_message() ); -
/** * Report an authenticated check outcome using only local submission identity. */ do_action( 'activelayer_protection_check_result', $api_result, $submission_id, hash( 'sha256', SettingsHelper::get_api_key() ), $provider_slug, $meta['form_id'] ?? 0 ); -
/** * Observe an eligible submission without passing its submitted values. */ do_action( 'activelayer_protection_observe', $this->slug, $meta['form_id'] ?? 0, [] ); -
/** * Fires when a submission processing fails. */ do_action( 'activelayer_queue_worker_submission_failed', $submission_id, $submission ); -
/** * This filter is documented in src/Integrations/WPForms/AdminSettings.php */ apply_filters( 'activelayer_show_tracking_mode', false ); -
/** * Filters whether to mask the submission IP address in Abilities output. */ apply_filters( 'activelayer_abilities_mask_ip_address', false ); -
/** * Filters whether ActiveLayer registers its abilities at all. */ apply_filters( 'activelayer_abilities_register', true ); -
/** * Filters the submission detail exposed via the Abilities API. */ apply_filters( 'activelayer_abilities_submission_detail', $detail, $submission ); -
/** * Filters the submission summary exposed via the Abilities API. */ apply_filters( 'activelayer_abilities_submission_summary', $summary, $submission ); -
activelayer_action_scheduler_action_scheduler_loader_is_available
filter Copy link Customise this hook/** * Filter whether Action Scheduler APIs are available. */ apply_filters( 'activelayer_action_scheduler_action_scheduler_loader_is_available', $available ); -
/** * Filter the Action Scheduler loaded state. */ apply_filters( 'activelayer_action_scheduler_action_scheduler_loader_is_loaded', $loaded ); -
/** * Fires once Action Scheduler assets have been loaded. */ do_action( 'activelayer_action_scheduler_action_scheduler_loader_loaded', $vendor_file ); -
activelayer_action_scheduler_action_scheduler_loader_loader_file
filter Copy link Customise this hook/** * Filter the Action Scheduler vendor file path before it is loaded. */ apply_filters( 'activelayer_action_scheduler_action_scheduler_loader_loader_file', $vendor_file ); -
activelayer_action_scheduler_action_scheduler_loader_should_initialize
filter Copy link Customise this hook/** * Filter whether Action Scheduler should be initialized immediately. */ apply_filters( 'activelayer_action_scheduler_action_scheduler_loader_should_initialize', ! function_exists( 'as_enqueue_async_action' ) ); -
/** * Filters the context sent with comment submissions. */ apply_filters( 'activelayer_comment_submission_context', [], $commentdata ); -
/** * Filter the detected user IP address. */ apply_filters( 'activelayer_get_user_ip', $ip ); -
activelayer_integrations_elementor_forms_submission_handler_block_message
filter Copy link Customise this hook/** * Filter the spam block message shown to Elementor Forms users. */ apply_filters( 'activelayer_integrations_elementor_forms_submission_handler_block_message', $this->integration->get_sync_block_message() ); -
activelayer_integrations_fluent_forms_submission_handler_abort_submission_message
filter Copy link Customise this hook/** * Filter the spam block message shown to Fluent Forms users. */ apply_filters( 'activelayer_integrations_fluent_forms_submission_handler_abort_submission_message', $this->integration->get_sync_block_message() ); -
activelayer_integrations_sureforms_submission_handler_abort_submission_message
filter Copy link Customise this hook/** * Filter the spam block message shown to SureForms users. */ apply_filters( 'activelayer_integrations_sureforms_submission_handler_abort_submission_message', $this->integration->get_sync_block_message() ); -
/** * Filters the form data for the entry before processing notifications. Same * filter as used in WPForms resend notifications. */ apply_filters( 'activelayer_integrations_wpforms_email_reconstructor_form_data', $form_data, $entry ); -
activelayer_integrations_wsform_submission_handler_block_message
filter Copy link Customise this hook/** * Filter the spam block message shown to WS Form users. */ apply_filters( 'activelayer_integrations_wsform_submission_handler_block_message', $this->integration->get_sync_block_message() ); -
/** * Fires after the currently saved credential has been verified. */ do_action( 'activelayer_key_connected' ); -
/** * Fires once the Queue Watchdog registers its hooks. */ do_action( 'activelayer_queue_watchdog_initialized' ); -
/** * Allow overriding queue availability detection. */ apply_filters( 'activelayer_queue_watchdog_queue_available', $queue_available ); -
/** * Filters the threshold (in seconds) before pending submissions trigger the * watchdog warning. */ apply_filters( 'activelayer_queue_watchdog_threshold', self::DEFAULT_THRESHOLD ); -
/** * Fires when a verdict is received from the API. */ do_action( 'activelayer_queue_worker_verdict_received', $submission_id, $api_result['verdict'], $submission ); -
/** * Filter the batch size for retry processing. */ apply_filters( 'activelayer_retry_failed_batch_limit', self::BATCH_LIMIT ); -
/** * Filter the retry interval. */ apply_filters( 'activelayer_retry_failed_interval', DAY_IN_SECONDS ); -
/** * Filter the maximum allowed retries. */ apply_filters( 'activelayer_retry_failed_max_attempts', self::MAX_RETRIES ); -
/** * Filter the initial delay before the first retry sweep. */ apply_filters( 'activelayer_retry_failed_start_delay', HOUR_IN_SECONDS ); -
/** * Fires after a submission's status has been successfully updated. */ do_action( 'activelayer_submission_status_changed', $id, $normalized_status, $old_status ); -
/** * Report freshly authenticated capacity to local interruption tracking. */ do_action( 'activelayer_subscription_stats_updated', $stats ); -
/** * Fires for a specific Formidable email action event. */ do_action( "frm_trigger_email_{$event}_action", $action_object, $entry_object, $form_object ); -
/** * Fires when Formidable processes an email action. */ do_action( 'frm_trigger_email_action', $action_object, $entry_object, $form_object, $event ); -
/** * Filters a Ninja Forms merge tag value. */ apply_filters( 'ninja_forms_merge_tags', $value ); -
/** * Filters email action settings before replaying the action. */ apply_filters( 'ninja_forms_run_action_settings', $action_settings, $context['form_id'], $action_id, $context['form_settings'] ); -
/** * Filters the form data for the entry before processing notifications. */ apply_filters( 'wpforms_entries_single_process_notifications_form_data', $form_data, $entry );
Generated from ActiveLayer Anti-Spam: Spam Protection for Forms & Comments's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: