Trakoo 1.3.4 has 5 actions and 33 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 Trakoo fires an action
add_action( 'vi_woo_orders_tracking_single_edit_tracking_change', function( $tracking_change, $current_tracking_data, $item_id, $order_id, $response ) {
// Your code runs here.
}, 10, 5 );
// Change a value Trakoo is about to use
add_filter( 'vi_woo_orders_tracking_current_tracking_url_show', function( $value, $item_id, $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.
All hooks
-
apply_filters( 'vi_woo_orders_tracking_current_tracking_url_show', $settings->get_url_tracking( $carrier_url, $tracking_number, $carrier_slug, $order->get_shipping_postcode(), false, false, $order_id ), $item_id, $order_id ); -
apply_filters( 'vi_woo_orders_tracking_current_carrier_slug', $current_tracking_data['carrier_slug'], $item_id, $order_id ); -
apply_filters( 'vi_woo_orders_tracking_current_tracking_number', $current_tracking_data['tracking_number'], $item_id, $order_id ); -
apply_filters( 'vi_woo_orders_tracking_current_tracking_url', $current_tracking_data['carrier_url'], $item_id, $order_id ); -
apply_filters( 'vi_woo_orders_tracking_current_carrier_name', $current_tracking_data['carrier_name'], $item_id, $order_id ); -
do_action( 'vi_woo_orders_tracking_single_edit_tracking_change', $tracking_change, $current_tracking_data, $item_id, $order_id, $response ); -
apply_filters( "woo_orders_tracking_settings-{$name_language}", $this->params[ $name_language ] ); -
apply_filters( "woo_orders_tracking_settings-{$name}__{$name_language}", $this->params[ $name ][ $name_language ] ); -
apply_filters( "woo_orders_tracking_settings-{$name}__{$name_sub}", $this->params[ $name ] [ $name_sub ] ); -
plugin_locale
filterapply_filters( 'plugin_locale', get_locale(), 'woo-orders-tracking' ); -
apply_filters( "vi_woo_orders_tracking_is_order_{$shipment_status}", $shipment_status_count === count( $line_items ), $order ); -
apply_filters( 'vi_woo_orders_tracking_single_edit_is_tracking_change', false, $quantity_index, $tracking_number, $carrier_slug, $item_id, $order_id ); -
do_action( 'vi_woo_orders_tracking_single_edit_save_tracking_data', $current_tracking_data, $quantity_index, $item_id, $order_id ); -
apply_filters( 'vi_wot_supported_paypal_gateways', array( 'paypal', 'ppec_paypal', ) ); -
villatheme_check_requires
filterapply_filters( 'villatheme_check_requires', wp_parse_args( $args, [ 'plugin_name' => '', 'php_version' => '', 'wp_version' => '', 'wc_version' => '', 'require_plugins' => [], ] ) ); -
villatheme_form_ads_data
filterapply_filters( 'villatheme_form_ads_data', ob_get_clean() ); -
do_action( 'villatheme_support_woo-orders-tracking' ); -
widget_title
filterapply_filters( 'widget_title', $instance['title'] ); -
apply_filters( 'woo_orders_tracking_defined_shipping_carriers', $carriers ); -
apply_filters( 'woo_orders_tracking_email_headers', "Content-Type: text/html\r\nReply-to: {$email->get_from_name()} <{$email->get_from_address()}>\r\n", $email ); -
apply_filters( 'woo_orders_tracking_empty_data_message', esc_html__( 'Please enter your tracking number to track your order.', 'woo-orders-tracking' ) ); -
apply_filters( 'woo_orders_tracking_empty_nonce_message', esc_html__( 'Please click button Track to track your order.', 'woo-orders-tracking' ) ); -
do_action_ref_array( 'woo_orders_tracking_handle_shipment_status', array( $tracking_number, $status, $order_ids, $order_item_ids, &$log, self::$settings->get_params( 'service_carrier_type' ) ) ); -
woo_orders_tracking_settings
filterapply_filters( 'woo_orders_tracking_settings', wp_parse_args( $woo_orders_tracking_settings, $this->default ) ); -
do_action( 'woo_orders_tracking_settings_after_change_order_status' ); -
apply_filters( "woo_orders_tracking_settings_default-{$name}", $this->default[ $name ] ); -
apply_filters( "woo_orders_tracking_settings_default-{$type}-{$name}", $this->default[ $type ][ $name ] ); -
apply_filters( 'woo_orders_tracking_settings_language', $language, $name, $name_sub ); -
apply_filters( "woo_orders_tracking_settings-{$name}", $this->params[ $name ] ); -
apply_filters( 'woo_orders_tracking_settings-shipping_carriers_define_list', vi_wot_json_encode( self::shipping_carriers() ) ); -
apply_filters( 'woo_orders_tracking_table_html', ob_get_clean(), $order_id ); -
apply_filters( 'woo_orders_tracking_timeline_html', wp_kses( $timeline_html, VI_WOO_ORDERS_TRACKING_DATA::get_allowed_html() ), $status, $tracking_code, $carrier_name, $track_info ); -
apply_filters( 'woo_orders_tracking_timeline_track_info', $data['tracking'], $tracking_code, $status ); -
apply_filters( 'woocommerce_orders_tracking_display_tracking_for_order_details', $display ); -
apply_filters( 'woocommerce_orders_tracking_email_woo_statuses', array( 'cancelled_order' => esc_html__( 'Cancelled', 'woo-orders-tracking' ), 'customer_completed_order' => esc_html__( 'Completed', 'woo-orders-tracking' ), 'customer_invoice' => esc_html__( 'Customer Invoice', 'woo-orders-tracking' ), 'customer_note' => esc_html__( 'Customer Note', 'woo-orders-tracking' ), 'failed_order' => esc_html__( 'Failed', 'woo-orders-tracking' ), 'customer_on_hold_orde... ); -
apply_filters( 'wot_search_order_item_by_tracking_number', $return, $tracking_code, $order_id, $email, $carrier_slug ); -
apply_filters( 'wot_trackingmore_all_shipment_statuses', array( 'pending' => esc_html_x( 'Pending', 'trackingmore_tracking_status', 'woo-orders-tracking' ), 'notfound' => esc_html_x( 'Not Found', 'trackingmore_tracking_status', 'woo-orders-tracking' ), 'pickup' => esc_html_x( 'Out for Delivery', 'trackingmore_tracking_status', 'woo-orders-tracking' ), 'transit' => esc_html_x( 'Transit', 'trackingmore_tracking_status', 'woo-orders-tracking' ), 'delive... ); -
apply_filters( 'wot_trackingmore_shipment_statuses_mapping', array( 'pending' => 'pending', 'notfound' => 'pending', 'pickup' => 'pickup', 'transit' => 'transit', 'delivered' => 'delivered', 'exception' => 'alert', 'expired' => 'alert', 'undelivered' => 'alert', ) );
Generated from Trakoo'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: