TrackFormPro icon
Analytics & Tracking

TrackFormPro hooks reference

TrackFormPro 1.5.5 has 23 actions and 40 filters, read directly from its source code on Nov 19, 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 TrackFormPro fires an action
add_action( 'track_form_pro_activate', function() {
	// Your code runs here.
}, 10, 1 );

// Change a value TrackFormPro is about to use
add_filter( 'track_form_pro_admin_data', 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

  • includes/lifecycle.php line 44
    /**
     * Fires when the plugin is activated (Premium creates its queue table here).
     */
    do_action( 'track_form_pro_activate' );
  • includes/admin-functions.php line 600
    /**
     * Filters the data passed to the admin scripts (add-ons add their own keys).
     */
    apply_filters( 'track_form_pro_admin_data', array( 'ajax_url' => admin_url('admin-ajax.php'), 'ajax_nonce' => wp_create_nonce('meta_capi_ajax_nonce'), 'guidance_nonce' => wp_create_nonce('track_form_pro_guidance'), 'meta_events' => track_form_pro_get_allowed_meta_events_for_dropdown(), 'supported_forms_data' => track_form_pro_get_supported_forms(), 'i18n' => array( 'filled' => __('Filled in', 'trackformpro'), 'saveToKeep' => __('Save the... );
  • includes/admin-functions.php line 622
    /**
     * Fires after the admin scripts are enqueued on TrackFormPro pages.
     */
    do_action( 'track_form_pro_admin_enqueue', $hook_suffix );
  • includes/submission-handlers.php line 203
    /**
     * Fires when background work is due, after the visitor has the page.
     */
    do_action( 'track_form_pro_background_jobs' );
  • includes/privacy.php line 32
    /**
     * Filters the user-agent pattern that identifies bots (a regular expression
     * without delimiters).
     */
    apply_filters( 'track_form_pro_bot_pattern', $pattern );
  • includes/browser-tracking-handlers.php line 42
    /**
     * Filters the pixels that get browser events for a form.
     */
    apply_filters( 'track_form_pro_browser_pixel_ids', $pixel_ids, $form_prefixed_id );
  • includes/class-submission.php line 337
    /**
     * Filters the value/currency part of custom_data before the default currency
     * is applied.
     */
    apply_filters( 'track_form_pro_custom_value', $custom_data, $this->entry, $this->form_id, $dynamic_map );
  • includes/dashboard-widget.php line 130
    /**
     * Prints extra lines in the dashboard box (Premium: qualified and won leads).
     */
    do_action( 'track_form_pro_dashboard_widget_lines' );
  • includes/core-helpers.php line 660
    /**
     * Filters the calling code added to local phone numbers.
     */
    apply_filters( 'track_form_pro_default_phone_country_code', $code, $country );
  • includes/core-helpers.php line 250
    /**
     * Filters a form's default value (Premium: the form's average lead value).
     */
    apply_filters( 'track_form_pro_default_value', $value, $form_prefixed_id, (array) $settings );
  • includes/forms/engine.php line 195
    /**
     * Lets an add-on take over this submission, e.g. to send it later when a value
     * filled in by an integration is ready. Return true when handled; nothing is
     * sent now then.
     */
    apply_filters( 'track_form_pro_defer_submission', false, $entry, $form_prefixed_id, $form );
  • includes/lead-email-source.php line 280
    /**
     * Whether to add the lead source to this email.
     */
    apply_filters( 'track_form_pro_email_add_source', true, $atts );
  • includes/lead-email-source.php line 242
    /**
     * Filters the lines of "Where this lead came from" in form emails (Premium
     * adds a link to the lead).
     */
    apply_filters( 'track_form_pro_email_source_lines', $lines, $token );
  • includes/submission-handlers.php line 544
    /**
     * Fires when Meta accepted one pixel's request: a first send, a retry from the
     * queue or "Retry now". The leads counter (review.php) counts each lead once
     * from here, however many pixels or attempts it took.
     */
    do_action( 'track_form_pro_events_accepted', (string) $pixel_id, is_array($sent_events) ? $sent_events : [], (string) $form_id, $attempt );
  • includes/forms/engine.php line 30
    /**
     * Filters the form plugin adapters. Add an instance of a
     * Track_Form_Pro_Form_Adapter subclass to support another form plugin.
     */
    apply_filters( 'track_form_pro_form_adapters', [ new Track_Form_Pro_Gravity_Forms_Adapter(), new Track_Form_Pro_WPForms_Adapter(), new Track_Form_Pro_Contact_Form_7_Adapter(), new Track_Form_Pro_Fluent_Forms_Adapter(), new Track_Form_Pro_Formidable_Adapter(), new Track_Form_Pro_Elementor_Forms_Adapter(), ] );
  • includes/admin/class-settings-page.php line 620
    /**
     * Prints extra default-value options (Premium: use the form's average lead
     * value).
     */
    do_action( 'track_form_pro_form_default_value_fields', $form_prefixed_id, $value_settings );
  • includes/admin/class-settings-page.php line 503
    /**
     * Prints extra fields in a form's Event section (e.g. the pixel for this
     * form).
     */
    do_action( 'track_form_pro_form_event_fields', $form_prefixed_id );
  • includes/submission-handlers.php line 273
    /**
     * Filters the events a submission sends (add-ons add trigger rules and custom
     * event parameters).
     */
    apply_filters( 'track_form_pro_form_events', $final_events_to_send, $entry, $form_prefixed_id, $form_object );
  • includes/admin/class-settings-page.php line 418
    /**
     * Prints extra sections in a form's settings (e.g. trigger rules).
     */
    do_action( 'track_form_pro_form_sections', $form_prefixed_id, $field_options, $settings['meta_events'] );
  • includes/admin/class-settings-page.php line 632
    /**
     * Prints extra fields in a form's Value section (e.g. waiting for an
     * integration).
     */
    do_action( 'track_form_pro_form_value_fields', $form_prefixed_id, $form_type_prefix, (int) $form_id );
  • includes/admin/class-settings-page.php line 191
    /**
     * Prints extra fields in the Browser events card, after the on/off switch.
     */
    do_action( 'track_form_pro_general_browser_fields', $browser_tracking_enabled );
  • includes/admin/class-settings-page.php line 205
    /**
     * Prints extra fields shown only while browser events are on.
     */
    do_action( 'track_form_pro_general_browser_options' );
  • includes/admin/class-settings-page.php line 132
    /**
     * Prints extra cards on the General tab.
     */
    do_action( 'track_form_pro_general_cards' );
  • includes/admin/class-settings-page.php line 324
    /**
     * Prints extra fields in the Privacy & troubleshooting card.
     */
    do_action( 'track_form_pro_general_privacy_fields' );
  • includes/guidance.php line 60
    /**
     * Filters the glossary (key => [term, explanation]); add-ons add their own
     * terms.
     */
    apply_filters( 'track_form_pro_glossary', [ 'capi' => [__('Conversions API (CAPI)', 'trackformpro'), __('Your server sends each form submission straight to Meta. Unlike the browser Pixel it isn\'t blocked by ad blockers, iOS privacy settings or browsers that limit cookies.', 'trackformpro')], 'pixel' => [__('Pixel / dataset ID', 'trackformpro'), __('The 15–16 digit number that identifies where Meta stores your events. Find it in Even... );
  • includes/admin-page-renderers.php line 68
    /**
     * Filters the status chips in the page header. Each: [style, text], and
     * optionally attributes for a linked chip: ['href' => , 'id' => , 'title' => ,
     * 'data-tab' => , 'hidden' => bool].
     */
    apply_filters( 'track_form_pro_header_chips', $chips );
  • includes/guidance.php line 465
    /**
     * Filters the health check results shown in Status & Test (add-ons add their
     * own checks). Each issue: id, severity (error|warning|info), title, why, fix,
     * action ([label, tab|url]).
     */
    apply_filters( 'track_form_pro_health_issues', $issues );
  • includes/privacy.php line 52
    /**
     * Filters whether the current request comes from a bot.
     */
    apply_filters( 'track_form_pro_is_bot', $is_bot, $user_agent );
  • includes/submission-handlers.php line 85
    /**
     * Filters whether an entry is treated as spam (and not sent to Meta).
     */
    apply_filters( 'track_form_pro_is_spam_entry', $is_spam, $form_prefixed_id, $entry );
  • includes/forms/engine.php line 184
    /**
     * Fires for every lead that will be sent to Meta (now, or later when it waits
     * for a value), while the visitor's request is still running.
     */
    do_action( 'track_form_pro_lead_received', $entry, $form_prefixed_id, $form );
  • includes/admin/class-settings-page.php line 682
    /**
     * Filters the number of events waiting in add-on queues (e.g. for a value).
     */
    apply_filters( 'track_form_pro_pending_jobs', 0 );
  • includes/core-helpers.php line 885
    /**
     * Filters the usable pixels.
     */
    apply_filters( 'track_form_pro_pixels', $pixels, $pixels );
  • includes/admin/class-settings-page.php line 157
    /**
     * Prints extra buttons in the pixels card header.
     */
    do_action( 'track_form_pro_pixels_card_actions' );
  • includes/submission-handlers.php line 284
    /**
     * Filters the pixels a form's events are sent to.
     */
    apply_filters( 'track_form_pro_pixels_for_form', $site_pixels, $form_prefixed_id, $site_pixels );
  • includes/privacy.php line 220
    /**
     * Filters the paragraphs of the suggested privacy policy text (Premium adds
     * the leads list).
     */
    apply_filters( 'track_form_pro_privacy_policy_paragraphs', $paragraphs );
  • includes/submission-handlers.php line 190
    /**
     * Fires at the end of every request, before due background work is checked.
     * Add-ons can use it to bring their own jobs forward
     * (track_form_pro_set_next_background_run()).
     */
    do_action( 'track_form_pro_request_end' );
  • includes/sanitization-callbacks.php line 227
    /**
     * Sanitizes add-on keys of a form's value settings.
     */
    apply_filters( 'track_form_pro_sanitize_value_settings', $output[$sanitized_form_id], $data, $sanitized_form_id );
  • includes/admin-functions.php line 330
    /**
     * Fires after a settings tab was saved (nonce and capability are already
     * checked), so add-ons can save their own fields from $_POST.
     */
    do_action( 'track_form_pro_save_tab', $tab );
  • includes/admin-functions.php line 318
    /**
     * Filters the success message of a settings tab added by an add-on (empty =
     * unknown tab).
     */
    apply_filters( 'track_form_pro_save_tab_message', '', $tab );
  • includes/admin-functions.php line 340
    /**
     * Filters what a tab save answers: a message, or an array with 'message',
     * 'keep' (true when something wasn't saved: the message stays on screen) and
     * data the page shows (see admin-scripts.js).
     */
    apply_filters( 'track_form_pro_save_tab_response', $message, $tab );
  • includes/submission-handlers.php line 695
    /**
     * Fires when Meta rejects events (the dashboard warning is shown either way).
     */
    do_action( 'track_form_pro_send_failed', $message, $form_id, $pixel_id );
  • includes/admin/class-settings-page.php line 92
    /**
     * Prints the content of tabs added with track_form_pro_settings_tabs.
     */
    do_action( 'track_form_pro_settings_tab_content', $active_tab );
  • includes/admin/class-settings-page.php line 25
    /**
     * Filters the settings tabs (tab ID => label). Add-ons print their tab's
     * content on track_form_pro_settings_tab_content.
     */
    apply_filters( 'track_form_pro_settings_tabs', [ 'tab-general' => __('General', 'trackformpro'), 'tab-forms' => __('Forms', 'trackformpro'), 'tab-status' => __('Status & Test', 'trackformpro'), ] );
  • includes/forms/engine.php line 260
    /**
     * Whether the browser event may fire on this confirmation (add-ons can hold it
     * back).
     */
    apply_filters( 'track_form_pro_show_browser_events', true, $form_prefixed_id, $entry_id );
  • includes/forms/engine.php line 160
    /**
     * Whether to skip this submission (e.g. a duplicate lead). Return true to send
     * nothing.
     */
    apply_filters( 'track_form_pro_skip_submission', false, $entry, $form_prefixed_id, $form );
  • includes/admin/class-settings-page.php line 660
    /**
     * Prints extra cards on the Status & Test tab, after the status overview.
     */
    do_action( 'track_form_pro_status_cards', $pixels );
  • includes/class-submission.php line 129
    /**
     * Fires after a submission's server events were sent (or queued for retry).
     */
    do_action( 'track_form_pro_submission_sent', $this->form_id, $payloads, $this->request_context, $sent, ['default_value' => !empty($GLOBALS['track_form_pro_default_value_used'])] );
  • includes/field-suggestions.php line 112
    /**
     * Filters the customer data mapping TrackFormPro suggests for a form.
     */
    apply_filters( 'track_form_pro_suggested_field_mapping', $suggested, $form_prefixed_id );
  • includes/core-helpers.php line 374
    /**
     * Filters whether the visitor opted out of data sale/sharing (e.g. to read
     * your consent tool's cookie).
     */
    apply_filters( 'track_form_pro_visitor_opted_out', $opted_out );
  • includes/admin/class-settings-page.php line 396 · used in 2 places
    apply_filters( 'track_form_pro_form_has_extra_events', false, $form_prefixed_id );
  • includes/monitor.php line 110
    apply_filters( 'https_local_ssl_verify', false );
  • includes/submission-handlers.php line 1105
    apply_filters( 'track_form_pro_browser_pixels', $pixels, $form_prefixed_id );
  • includes/browser-tracking-handlers.php line 25
    apply_filters( 'track_form_pro_browser_tracking_for_form', track_form_pro_is_browser_tracking_enabled(), $form_prefixed_id );
  • includes/core-helpers.php line 261
    apply_filters( 'track_form_pro_event_names', $standard_events );
  • track-form-pro.php line 87
    do_action( 'track_form_pro_fs_loaded' );
  • includes/submission-handlers.php line 423
    apply_filters( 'track_form_pro_graph_api_version', 'v25.0' );
  • includes/database-management.php line 319
    apply_filters( 'track_form_pro_log_retention_days', 30 );
  • includes/lead-email-source.php line 150
    apply_filters( 'wp_mail_content_type', 'text/plain' );

Generated from TrackFormPro'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.

Plugin 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 this

Not 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: