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.
// 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
-
/** * Fires when the plugin is activated (Premium creates its queue table here). */ do_action( 'track_form_pro_activate' ); -
/** * 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... ); -
/** * Fires after the admin scripts are enqueued on TrackFormPro pages. */ do_action( 'track_form_pro_admin_enqueue', $hook_suffix ); -
/** * Fires when background work is due, after the visitor has the page. */ do_action( 'track_form_pro_background_jobs' ); -
/** * Filters the user-agent pattern that identifies bots (a regular expression * without delimiters). */ apply_filters( 'track_form_pro_bot_pattern', $pattern ); -
/** * Filters the pixels that get browser events for a form. */ apply_filters( 'track_form_pro_browser_pixel_ids', $pixel_ids, $form_prefixed_id ); -
/** * Filters the JavaScript consent check for a source (Premium adds consent * tools). */ apply_filters( 'track_form_pro_consent_js', $expressions[$source] ?? 'false', $source ); -
/** * Filters the consent sources offered under "Require consent". */ apply_filters( 'track_form_pro_consent_sources', [ 'cookie' => __('TrackFormPro cookie (trackform_gdpr_consent=true)', 'trackformpro'), 'wp_consent_api' => __('WP Consent API (marketing category)', 'trackformpro'), ] ); -
/** * 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 ); -
/** * Prints extra lines in the dashboard box (Premium: qualified and won leads). */ do_action( 'track_form_pro_dashboard_widget_lines' ); -
/** * Filters the links at the bottom of the dashboard box (label => URL). */ apply_filters( 'track_form_pro_dashboard_widget_links', [] ); -
/** * Filters the calling code added to local phone numbers. */ apply_filters( 'track_form_pro_default_phone_country_code', $code, $country ); -
/** * 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 ); -
/** * 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 ); -
/** * Whether to add the lead source to this email. */ apply_filters( 'track_form_pro_email_add_source', true, $atts ); -
/** * 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 ); -
/** * 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 ); -
/** * 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(), ] ); -
/** * 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 ); -
/** * 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 ); -
/** * 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 ); -
/** * 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'] ); -
/** * 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 ); -
/** * Prints extra fields in the Browser events card, after the on/off switch. */ do_action( 'track_form_pro_general_browser_fields', $browser_tracking_enabled ); -
/** * Prints extra fields shown only while browser events are on. */ do_action( 'track_form_pro_general_browser_options' ); -
/** * Prints extra cards on the General tab. */ do_action( 'track_form_pro_general_cards' ); -
/** * Prints extra fields in the Privacy & troubleshooting card. */ do_action( 'track_form_pro_general_privacy_fields' ); -
/** * 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... ); -
/** * Filters whether the visitor gave consent (Premium reads consent tools here). */ apply_filters( 'track_form_pro_has_consent', $has_consent, $source ); -
/** * 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 ); -
/** * 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 ); -
/** * Filters whether the current request comes from a bot. */ apply_filters( 'track_form_pro_is_bot', $is_bot, $user_agent ); -
/** * 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 ); -
/** * 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 ); -
/** * Fires for a real lead that isn't sent to Meta because the visitor hasn't * given consent (not for bots, spam, forms that aren't tracked or skipped * admin submissions). */ do_action( 'track_form_pro_lead_without_consent', $entry, $form_prefixed_id, $form ); -
/** * Filters the number of events waiting in add-on queues (e.g. for a value). */ apply_filters( 'track_form_pro_pending_jobs', 0 ); -
/** * Filters the usable pixels. */ apply_filters( 'track_form_pro_pixels', $pixels, $pixels ); -
/** * Prints extra buttons in the pixels card header. */ do_action( 'track_form_pro_pixels_card_actions' ); -
/** * 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 ); -
/** * Filters the paragraphs of the suggested privacy policy text (Premium adds * the leads list). */ apply_filters( 'track_form_pro_privacy_policy_paragraphs', $paragraphs ); -
/** * 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' ); -
/** * 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 ); -
/** * 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 ); -
/** * 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 ); -
/** * 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 ); -
/** * Fires when Meta rejects events (the dashboard warning is shown either way). */ do_action( 'track_form_pro_send_failed', $message, $form_id, $pixel_id ); -
/** * Prints the content of tabs added with track_form_pro_settings_tabs. */ do_action( 'track_form_pro_settings_tab_content', $active_tab ); -
/** * 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'), ] ); -
/** * 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 ); -
/** * 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 ); -
/** * Prints extra cards on the Status & Test tab, after the status overview. */ do_action( 'track_form_pro_status_cards', $pixels ); -
/** * 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'])] ); -
/** * Filters the customer data mapping TrackFormPro suggests for a form. */ apply_filters( 'track_form_pro_suggested_field_mapping', $suggested, $form_prefixed_id ); -
/** * 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 ); -
apply_filters( 'track_form_pro_form_has_extra_events', false, $form_prefixed_id ); -
apply_filters( 'https_local_ssl_verify', false ); -
apply_filters( 'track_form_pro_browser_pixels', $pixels, $form_prefixed_id ); -
apply_filters( 'track_form_pro_browser_tracking_for_form', track_form_pro_is_browser_tracking_enabled(), $form_prefixed_id ); -
apply_filters( 'track_form_pro_event_names', $standard_events ); -
do_action( 'track_form_pro_fs_loaded' ); -
apply_filters( 'track_form_pro_graph_api_version', 'v25.0' ); -
apply_filters( 'track_form_pro_log_retention_days', 30 ); -
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.
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: