Spam Protection 3.2.0 has 8 actions and 38 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 Spam Protection fires an action
add_action( 'maspik/blocked', function( $submission, $verdict ) {
// Your code runs here.
}, 10, 2 );
// Change a value Spam Protection is about to use
add_filter( 'maspik/client_ip', function( $resolved, $remote ) {
// Change $resolved here.
return $resolved;
}, 10, 2 );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
-
maspik/blocked
action/** * Fires after a submission was blocked. */ do_action( 'maspik/blocked', $submission, $verdict ); -
maspik/booted
action/** * Fires when MASPIK is fully booted. Third parties can register custom checks * / integrations here. */ do_action( 'maspik/booted', $this->container ); -
maspik/client_ip
filter/** * Final say for hosts with a bespoke setup. Must return a valid IP. */ apply_filters( 'maspik/client_ip', $resolved, $remote ); -
maspik/dashboard_refresh
action/** * Fires after the site pulls rules from the Dashboard. */ do_action( 'maspik/dashboard_refresh', $id ); -
maspik/direct_post_referrer
filter/** * The sentinel that goes out as `maspik_referrer` alongside the score. The * score says how suspicious and which integration; the sentinel says which * specific marker was missing, so the server can tell `no_state_token` from * `no_gform_submit` without guessing. v2 sent both; sending only the number * loses that detail. */ apply_filters( 'maspik/direct_post_referrer', null, $submission ); -
maspik/direct_post_score
filter/** * Form-specific direct-POST evidence. Adapters return a 1–9 score when their * plugin's own page-context field is missing (Elementor's `referrer`, CF7's * `_wpcf7` id, …). Runs after reset() so the score survives into the Matrix * payload. */ apply_filters( 'maspik/direct_post_score', 1, $submission ); -
maspik/passed
action/** * Fires after a submission passed every check (debug logging mode). */ do_action( 'maspik/passed', $submission, $verdict ); -
maspik/register_integrations
action/** * Third parties may register custom integrations. */ do_action( 'maspik/register_integrations', $registry ); -
maspik/telemetry_endpoint
filter/** * The telemetry receiver URL. */ apply_filters( 'maspik/telemetry_endpoint', $url ); -
maspik/upgraded
action/** * Fires after MASPIK migrates to a new version. Third parties (and future * in-plugin migrations) can hook version-specific steps. */ do_action( 'maspik/upgraded', $fromVersion, MASPIK_VERSION ); -
maspik/license_changed
actiondo_action( 'maspik/license_changed' ); -
do_action( 'litespeed_control_set_nocache', 'Maspik admin API: settings must never be served stale' ); -
apply_filters( 'maspik_disable_affiliatewp_spam_check', false ); -
apply_filters( 'maspik_disable_bitform_spam_check', false, $formId, $_POST ); -
apply_filters( 'maspik_disable_bricks_spam_check', false, $form ); -
apply_filters( 'maspik_disable_cf7_spam_check', false, $formId ); -
apply_filters( 'maspik_disable_edd_registration_spam_check', false ); -
apply_filters( 'maspik_disable_elementor_atomic_forms_spam_check', false, $formFields, $widgetSettings, $postId ); -
apply_filters( 'maspik_disable_elementor_spam_check', false, $formName, $record ); -
apply_filters( 'maspik_disable_everestforms_spam_check', false, $formId ); -
apply_filters( 'maspik_disable_fluentforms_spam_check', false, $formId ); -
apply_filters( 'maspik_disable_forminator_spam_check', false, $formId ); -
apply_filters( 'maspik_disable_funnelkit_spam_check', false ); -
apply_filters( 'maspik_disable_gravityforms_spam_check', false, $formId, $form ); -
apply_filters( 'maspik_disable_helloplus_spam_check', false, $record ); -
apply_filters( 'maspik_disable_memberpress_spam_check', false, $productId ); -
apply_filters( 'maspik_disable_metform_spam_check', false, $formId, $formData ); -
apply_filters( 'maspik_disable_ninjaforms_spam_check', false, $formId ); -
apply_filters( 'maspik_disable_registration_spam_check', false ); -
apply_filters( 'maspik_disable_sureforms_spam_check', false, $formId ); -
apply_filters( 'maspik_disable_wp_comments_spam_check', false, $postId, $commentdata ); -
apply_filters( 'maspik_disable_wpforms_spam_check', false, $formId ); -
apply_filters( 'maspik_disable_wsform_spam_check', false, $formId ); -
maspik_guard_skip_selector
filterapply_filters( 'maspik_guard_skip_selector', '' ); -
apply_filters( 'maspik_validate_custom_form_fields', false, $fields, $form_name ); -
maspik/cloudflare_ips
filterapply_filters( 'maspik/cloudflare_ips', self::CLOUDFLARE_RANGES ); -
maspik/field_checks
filterapply_filters( 'maspik/field_checks', PipelineBuilder::fieldChecks($config) ); -
apply_filters( 'maspik/infer_unknown_field_types', false, $this->id() ); -
maspik/late_checks
filterapply_filters( 'maspik/late_checks', PipelineBuilder::lateChecks($config), $submission ); -
maspik/matrix_monthly_limit
filterapply_filters( 'maspik/matrix_monthly_limit', 100 ); -
apply_filters( 'maspik/memberpress_gate_paid_signups', get_option('maspik_memberpress_gate_paid') === '1' ); -
maspik/pro_supports
filterapply_filters( 'maspik/pro_supports', false, $feature ); -
maspik/skip_check
filterapply_filters( 'maspik/skip_check', false, $submission ); -
maspik/submission_checks
filterapply_filters( 'maspik/submission_checks', PipelineBuilder::submissionChecks($config), $submission ); -
maspik/trust_private_proxy
filterapply_filters( 'maspik/trust_private_proxy', true ); -
maspik/trusted_proxies
filterapply_filters( 'maspik/trusted_proxies', $list );
Generated from Spam Protection'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: