TrackShip for WooCommerce 2.0.9 has 17 actions and 56 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 TrackShip for WooCommerce fires an action
add_action( 'trackship_mcp_tool_called', function( $tool, $args, $result ) {
// Your code runs here.
}, 10, 3 );
// Change a value TrackShip for WooCommerce is about to use
add_filter( 'exclude_to_send_data_for_provider', function( $value, $tracking_provider, $order_id ) {
// 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.
Changes by version
All hooks
-
/** * Filters whether tracking data should be sent to TrackShip for this shipment. */ apply_filters( 'exclude_to_send_data_for_provider', true, $tracking_provider, $order_id ); -
/** * In Italy, the telephone prefixes released by "H3G" operator have the first * two digits equal to the Italian international prefix. If the customer has * entered the number without the country code, the sending of SMS can fail * because of this similarity */ apply_filters( 'smswoo_italian_numbers_length', 10 ); -
/** * In Norway, the newer telephone prefixes have the first two digits equal to * the Norwegian international prefix. If the customer has entered the number * without the country code, the sending of SMS can fail because of this * similarity */ apply_filters( 'smswoo_norwegian_numbers_length', 8 ); -
/** * Filter the notification placeholders and replacements. */ apply_filters( 'smswoo_sms_message_replacements', $replacements, $this ); -
/** * Filter the display name of an audit channel. */ apply_filters( 'trackship_mcp_channel_labels', $known, $channel ); -
/** * Filter the AI clients offered on the connection screen. */ apply_filters( 'trackship_mcp_client_targets', $targets, $url, $key ); -
/** * Filter the callers treated as machinery rather than as people. */ apply_filters( 'trackship_mcp_machinery_agents', $machinery, $agent ); -
/** * Fires after every tool call, for plugins that keep a log of their own. */ do_action( 'trackship_mcp_tool_called', $tool, $args, $result ); -
apply_filters( 'trackship_status_filter', $status ); -
apply_filters( 'trackship_tracking_event', $tracking_description . $tracking_location_city ); -
apply_filters( 'trackship_tracking_event_description', $value->message ); -
apply_filters( 'trackship_tracking_event_location', $value->tracking_location->city ); -
apply_filters( 'convert_provider_name_to_slug', $tracking_provider ); -
apply_filters( 'show_est_delivery_date', true, $row->shipping_provider ); -
apply_filters( 'woocommerce_mail_content', $email->style_inline( $mailer->wrap_message( $email_heading, $email_content ) ) ); -
apply_filters( 'is_order_shipped', false, $order ); -
apply_filters( 'smswoo_additional_charsets', get_option( 'smswoo_active_charsets', array() ) ); -
apply_filters( 'trackship_mail_content', $message, $email_heading, $preview_id, 'shipment_email', $status ); -
apply_filters( 'add_multiple_emails_to_shipment_email', $email_to, $new_status ); -
apply_filters( 'allowed_order_status_for_delivered', array( 'completed', 'updated-tracking', 'shipped' ) ); -
apply_filters( 'ast_provider_title', $provider_name ); -
apply_filters( 'smswoo_format_phone_number', $phone, $this->_calling_code ); -
apply_filters( 'smswoo_italian_prefixes', array( '390', '391', '392', '393', '397' ) ); -
apply_filters( 'smswoo_norwegian_prefixes', array( '47' ) ); -
apply_filters( 'tracking_widget_product_array', $products, $order_id, $tracker, $tracking_provider, $tracking_number ); -
apply_filters( 'trackship_for_site_url', $domain ); -
apply_filters( 'trackship_pending_status_message', $pending_message, $row->shipment_status ); -
apply_filters( 'ts_shipped_product_label', $shipped_product_label, $new_status ); -
do_action( 'wcast_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ); -
do_action( 'wcast_email_before_order_table', $order, $sent_to_admin, $plain_text, $email ); -
do_action( 'after_shipment_status_email_notifications' ); -
do_action( 'after_tracking_widget_email', $order_id, $new_status ); -
do_action( 'after_trackship_settings' ); -
do_action( 'ast_after_tracking_number', $order_id, $tracking_item['tracking_id'] ); -
do_action( 'ast_shipment_tracking_end', $order_id, $tracking_item ); -
apply_filters( 'ast_tracking_page_front_order_email_label', __( 'Order Email', 'trackship-for-woocommerce' ) ); -
apply_filters( 'ast_tracking_page_front_order_label', __( 'Order ID', 'trackship-for-woocommerce' ) ); -
apply_filters( 'ast_tracking_page_front_text', __( 'To track your order, enter your order number and email address:', 'trackship-for-woocommerce' ) ); -
apply_filters( 'ast_tracking_page_traking_number_front_text', __( 'To track your order, please enter the tracking number you received in the shipping confirmation email', 'trackship-for-woocommerce' ) ); -
do_action( 'ast_trigger_ts_status_change', $order_id, $previous_status, $tracking_event_status, $tracking_item, [] ); -
do_action( 'before_tracking_widget_email', $tracking_item, $order_id ); -
apply_filters( 'est_delivery_date_format', 'l, M d' ); -
apply_filters( 'exclude_klaviyo_phone', false ); -
apply_filters( 'get_settings_data', $this->option_prefix ); -
do_action( 'shipment_status_sms_section' ); -
apply_filters( 'smswoo_customer_sms_after_variable_replace', $message, $this->order ); -
apply_filters( 'smswoo_customer_sms_before_variable_replace', $message, $this->order ); -
apply_filters( 'smswoo_customer_sms_send', $message, $this->order ); -
apply_filters( 'smswoo_sms_customer_phone', $this->order->get_billing_phone( 'edit' ), $this->order ); -
apply_filters( 'smswoo_sms_provider_array', $settings ); -
apply_filters( 'smswoo_timeschedule', false, $this, $phone, $message ); -
do_action( 'tracking_page_notifications_tab', $order_id ); -
apply_filters( 'tracking_page_products_tab', __( 'Items in this shipment', 'trackship-for-woocommerce' ) ); -
apply_filters( 'tracking_page_tab_label', $labels_name ); -
apply_filters( 'tracking_page_tracking_number_label', __( 'Tracking Number', 'trackship-for-woocommerce' ) ); -
apply_filters( 'trackship_email_schema_markup', $data, $order_id, $new_status, $tracking_item, $row ); -
apply_filters( 'trackship_formated_order_id', $order_id ); -
apply_filters( 'trackship_shipment_email_recipient', $order->get_billing_email(), $order ); -
do_action( 'trackship_shipment_status_trigger', $order_id, $previous_status, $tracking_event_status, $tracking_number ); -
do_action( 'trackship_tracking_page_notice', $tracking_provider, $tracking_number, $order_id ); -
apply_filters( 'ts_sms_wc_log', true ); -
apply_filters( 'woocommerce_order_item_class', 'order_item', $item, $order ); -
do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $order, $plain_text ); -
do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order, $plain_text ); -
apply_filters( 'woocommerce_order_item_name', $product_name, $item, false ); -
apply_filters( 'woocommerce_order_item_thumbnail', $image, $item ); -
apply_filters( 'zorem_tracking_data', $data );
Generated from TrackShip 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: