CAPI Suite: Meta Pixel, Pinterest & TikTok for WooCommerce 3.11.0 has 1 actions and 95 filters, read directly from its source code on Nov 18, 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 CAPI Suite: Meta Pixel, Pinterest & TikTok for WooCommerce fires an action
add_action( 'mcapi_log_export_chunk_written', function( $written ) {
// Your code runs here.
}, 10, 1 );
// Change a value CAPI Suite: Meta Pixel, Pinterest & TikTok for WooCommerce is about to use
add_filter( 'mcapi_ccpa_opt_out', function( $value, $mcapi_trust_cookies, $mcapi_order ) {
// Change $value here.
return $value;
}, 10, 3 );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
-
/** * Opt-out state for CMPs that expose it via PHP API rather than a cookie. */ apply_filters( 'mcapi_ccpa_opt_out', false, $mcapi_trust_cookies, $mcapi_order ); -
/** * Filter the $_SERVER keys consulted for a bot score, in priority order. */ apply_filters( 'mcapi_cf_bot_score_headers', array( 'HTTP_X_BOT_SCORE', 'HTTP_CF_BOT_SCORE' ) ); -
/** * Filter whether a forwarded Cloudflare bot score below * mcapi_get_cf_bot_score_threshold() disqualifies the count+pacing soft-trust * promotion for this request. Default true. Does NOT drop the event — a * disqualified request still falls through to 'defer', the existing behaviour * for "suspicious but unproven". Never affects the human_proof instant-promote * path, which is evaluated earlier and indep... */ apply_filters( 'mcapi_cf_score_disqualifies_soft_trust', true, $cf_bot_score, $cf_score_threshold ); -
/** * What an order with no consent snapshot counts as — see this function's * docblock for the full argument for the default. */ apply_filters( 'mcapi_consent_default_when_unrecorded', 'unknown', $mcapi_order ); -
/** * Filter the total-row threshold on mcapi_deferred_events above which the * circuit breaker engages. Default 20,000 rows (roughly 20-40MB at typical * payload size — unpleasant but bounded, versus the unbounded growth a * botnet wave could otherwise produce). A value below 1 disables the breaker * entirely. */ apply_filters( 'mcapi_deferred_events_breaker_threshold', 20000 ); -
/** * Filter the per-key cap on rows held in mcapi_deferred_events. Keeps the * newest N rows for a given key and discards older ones on insert. */ apply_filters( 'mcapi_deferred_events_per_visitor_cap', 50 ); -
/** * Filter the window the failure messages are grouped over. */ apply_filters( 'mcapi_diagnostic_export_failure_days', 7 ); -
/** * Filter how many distinct failure messages the file lists. */ apply_filters( 'mcapi_diagnostic_export_failure_limit', 15 ); -
/** * Filter how long an endpoint probe result is reused. */ apply_filters( 'mcapi_environment_probe_cache_seconds', $seconds, $all_clear ); -
/** * Filter the environment type this plugin's checks read. */ apply_filters( 'mcapi_environment_type', $type ); -
/** * Filter whether WordPress's built-in scheduler counts as switched off. */ apply_filters( 'mcapi_environment_wp_cron_disabled', $disabled ); -
/** * Filter the Facebook user ID for this user, for social-login plugins not * listed above. */ apply_filters( 'mcapi_fb_login_id', $value, $user_id ); -
/** * Filter extra identity fields Meta accepts that WooCommerce has no native * home for. */ apply_filters( 'mcapi_identity_extra_fields', array(), $order ); -
/** * Override / extend consent detection for CMPs not covered above. - Return * true / false to force a state. - Return null to delegate back to "unknown" * (default unless another filter sets it). */ apply_filters( 'mcapi_marketing_consent_granted', $state, $mcapi_trust_cookies, $mcapi_order ); -
/** * Filter the table one bulk upsert of the match-stats flush writes to. */ apply_filters( 'mcapi_match_stats_flush_table', $default, $key ); -
/** * Filter the per-country phone dialling rules used to build E.164. */ apply_filters( 'mcapi_phone_country_rules', $rules ); -
/** * Filter the canonical -> Pinterest event-name map. */ apply_filters( 'mcapi_pinterest_event_name_map', $map ); -
/** * Filter the order statuses that trigger a Purchase event. */ apply_filters( 'mcapi_purchase_order_statuses', $statuses ); -
/** * Filter the order statuses excluded from the Purchase-status checkbox list. */ apply_filters( 'mcapi_purchase_status_choices_excluded', array( 'cancelled', 'failed', 'refunded', 'trash', 'checkout-draft' ) ); -
/** * Filter the order statuses reconciliation treats as a completed sale. */ apply_filters( 'mcapi_reconcile_sale_statuses', $statuses ); -
/** * Override the auto-detected shopper-context state. */ apply_filters( 'mcapi_request_is_shopper_context', $mcapi_is_shopper, $order ); -
/** * Filter the event names treated as a completed sale. */ apply_filters( 'mcapi_sale_event_names', $names ); -
/** * Filter the admin-ajax actions treated as the shopper's own request. */ apply_filters( 'mcapi_shopper_ajax_actions', $mcapi_actions ); -
/** * Whether the diagnostic export control appears on the Health tab. */ apply_filters( 'mcapi_show_diagnostic_export', false ); -
/** * Filter the TikTok event-name map for advanced merchants who want to override * the canonical → TikTok mapping (e.g., send Subscribe and * SubscriptionRenewal as distinct custom events). */ apply_filters( 'mcapi_tiktok_event_name_map', $event_name_map ); -
/** * Filter the CIDRs we trust to set proxy headers (X-Forwarded-For, X-Real-IP, * etc.). Default = Cloudflare + RFC 1918 + loopback. Add your front-door CIDRs * (AWS ALB, Fastly client-IP egress, etc.) if you operate a custom proxy * stack. */ apply_filters( 'mcapi_trusted_proxy_cidrs', array_merge( $cf_ranges, $local_proxy_ranges ), $remote_addr ); -
/** * Cap how many trailing X-Forwarded-For hops the walk below will treat as * trusted-and-skippable before it stops rather than continuing further left. * Default null = unbounded (today's behaviour: every hop that matches a * trusted CIDR is skipped, with no limit on how many). */ apply_filters( 'mcapi_trusted_proxy_hops', null ); -
apply_filters( 'mcapi_is_ai_agent_request', true, $ua, $uri ); -
apply_filters( 'mcapi_consent_granted_for_marketing', $default_granted ); -
apply_filters( 'mcapi_datacenter_ip_ranges', $list ); -
apply_filters( 'mcapi_is_bot_request', true, $ua ); -
apply_filters( 'mcapi_match_stats_enabled', true ); -
apply_filters( 'action_scheduler_pastdue_actions_min', 1 ); -
action_scheduler_pastdue_actions_seconds
filter Used by 104 plugins → Copy link Customise this hookapply_filters( 'action_scheduler_pastdue_actions_seconds', DAY_IN_SECONDS ); -
apply_filters( 'mcapi_ai_agent_user_agents', $default_alts ); -
apply_filters( 'mcapi_blocklist_probe_depth', MCAPI_BLOCKLIST_PROBE_DEPTH ); -
apply_filters( 'mcapi_cf_bot_score_threshold', $default ); -
apply_filters( 'mcapi_deferred_events_count_cache_ttl', 30 ); -
apply_filters( 'mcapi_deferred_recover_limit', 50 ); -
apply_filters( 'mcapi_environment_browser_min_events', 50 ); -
apply_filters( 'mcapi_environment_derived_shortfall_floor', 20 ); -
apply_filters( 'mcapi_environment_excluded_block_minimum', 5 ); -
apply_filters( 'mcapi_environment_excluded_candidate_limit', 5 ); -
apply_filters( 'mcapi_environment_excluded_human_minimum', 3 ); -
apply_filters( 'mcapi_environment_excluded_window_days', 7 ); -
apply_filters( 'mcapi_environment_funnel_evidence_minimum', 25 ); -
apply_filters( 'mcapi_environment_overdue_sample_limit', 500 ); -
apply_filters( 'mcapi_environment_proven_human_score', 100 ); -
apply_filters( 'mcapi_environment_publisher_report_interval', DAY_IN_SECONDS ); -
apply_filters( 'mcapi_environment_publisher_signal_days', 30 ); -
apply_filters( 'mcapi_environment_queue_stall_seconds', HOUR_IN_SECONDS ); -
apply_filters( 'mcapi_environment_rollup_min_events', 500 ); -
apply_filters( 'mcapi_environment_rollup_window_days', 30 ); -
apply_filters( 'mcapi_environment_scan_row_limit', 20 ); -
apply_filters( 'mcapi_environment_scan_value_limit', 5000 ); -
apply_filters( 'mcapi_environment_send_history_days', 7 ); -
apply_filters( 'mcapi_environment_send_history_limit', 500 ); -
apply_filters( 'mcapi_environment_unreachable_run_length', 10 ); -
apply_filters( 'mcapi_event_importance_weights', mcapi_default_event_importance_weights() ); -
apply_filters( 'mcapi_force_global_rate_limit', true ); -
apply_filters( 'mcapi_force_rate_limiting', false ); -
apply_filters( 'mcapi_global_rate_limit_per_minute', 2000 ); -
apply_filters( 'mcapi_identity_prune_budget_seconds', 10.0 ); -
apply_filters( 'mcapi_identity_prune_chunk_size', 1000 ); -
apply_filters( 'mcapi_identity_retention_days', 180 ); -
apply_filters( 'mcapi_inline_script_attrs', $attrs ); -
apply_filters( 'mcapi_ip_state_sweep_interval', HOUR_IN_SECONDS ); -
do_action( 'mcapi_log_export_chunk_written', $written ); -
apply_filters( 'mcapi_match_key_weights', mcapi_default_match_key_weights() ); -
apply_filters( 'mcapi_min_event_gap', 3 ); -
apply_filters( 'mcapi_observe_burst_window', 60 ); -
apply_filters( 'mcapi_observe_demote_after_seconds', 1800 ); -
apply_filters( 'mcapi_observe_event_limit', 5 ); -
apply_filters( 'mcapi_pending_registration_push_ttl', 15 * MINUTE_IN_SECONDS ); -
apply_filters( 'mcapi_publisher_check_delay_ms', 3000 ); -
apply_filters( 'mcapi_queue_batch_size', $default_batch ); -
apply_filters( 'mcapi_reconcile_rollup_table', $default ); -
apply_filters( 'mcapi_require_rest_token', true ); -
apply_filters( 'mcapi_trust_score_floor', 50 ); -
apply_filters( 'mcapi_watchdog_enabled', true ); -
apply_filters( 'mcapi_watchdog_failure_rate_min_events', 10 ); -
apply_filters( 'mcapi_watchdog_failure_rate_threshold', 0.2 ); -
apply_filters( 'mcapi_watchdog_oauth_cluster_threshold', 5 ); -
apply_filters( 'mcapi_watchdog_oauth_scan_limit', 1000 ); -
apply_filters( 'mcapi_watchdog_queue_age_threshold', HOUR_IN_SECONDS ); -
apply_filters( 'mcapi_watchdog_queue_size_threshold', 500 ); -
apply_filters( 'mcapi_watchdog_quiet_store_floor', 5.0 ); -
apply_filters( 'mcapi_watchdog_score_regression_threshold', 1.5 ); -
apply_filters( 'mcapi_watchdog_silence_hours', 24 ); -
apply_filters( 'mcapi_watchdog_volume_baseline_floor', 5.0 ); -
apply_filters( 'mcapi_watchdog_volume_collapse_ratio', 0.5 );
Generated from CAPI Suite: Meta Pixel, Pinterest & TikTok for WooCommerce'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: