Trakoo icon
Analytics & Tracking

Trakoo hooks reference

  • By VillaTheme
  • v1.3.4 New
  • Updated

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.

functions.phpyour child theme
// 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

  • includes/admin/import_csv.php line 2319 · used in 4 places
    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 );
  • includes/admin/orders-edit-tracking.php line 1078 · used in 3 places
    apply_filters( 'vi_woo_orders_tracking_current_carrier_slug', $current_tracking_data['carrier_slug'], $item_id, $order_id );
  • includes/admin/orders-edit-tracking.php line 1075 · used in 3 places
    apply_filters( 'vi_woo_orders_tracking_current_tracking_number', $current_tracking_data['tracking_number'], $item_id, $order_id );
  • includes/admin/orders-edit-tracking.php line 1076 · used in 3 places
    apply_filters( 'vi_woo_orders_tracking_current_tracking_url', $current_tracking_data['carrier_url'], $item_id, $order_id );
  • includes/admin/orders-edit-tracking.php line 1077 · used in 2 places
    apply_filters( 'vi_woo_orders_tracking_current_carrier_name', $current_tracking_data['carrier_name'], $item_id, $order_id );
  • includes/admin/orders-edit-tracking.php line 307 · used in 2 places
    do_action( 'vi_woo_orders_tracking_single_edit_tracking_change', $tracking_change, $current_tracking_data, $item_id, $order_id, $response );
  • includes/data.php line 180 · used in 2 places
    apply_filters( "woo_orders_tracking_settings-{$name_language}", $this->params[ $name_language ] );
  • includes/data.php line 164 · used in 2 places
    apply_filters( "woo_orders_tracking_settings-{$name}__{$name_language}", $this->params[ $name ][ $name_language ] );
  • includes/data.php line 169 · used in 2 places
    apply_filters( "woo_orders_tracking_settings-{$name}__{$name_sub}", $this->params[ $name ] [ $name_sub ] );
  • plugin_locale

    filter
    includes/admin/admin.php line 67
    apply_filters( 'plugin_locale', get_locale(), 'woo-orders-tracking' );
  • includes/admin/orders-track-info.php line 335
    apply_filters( "vi_woo_orders_tracking_is_order_{$shipment_status}", $shipment_status_count === count( $line_items ), $order );
  • includes/admin/orders-edit-tracking.php line 298
    apply_filters( 'vi_woo_orders_tracking_single_edit_is_tracking_change', false, $quantity_index, $tracking_number, $carrier_slug, $item_id, $order_id );
  • includes/admin/orders-edit-tracking.php line 461
    do_action( 'vi_woo_orders_tracking_single_edit_save_tracking_data', $current_tracking_data, $quantity_index, $item_id, $order_id );
  • includes/admin/paypal.php line 656
    apply_filters( 'vi_wot_supported_paypal_gateways', array( 'paypal', 'ppec_paypal', ) );
  • includes/support.php line 974
    apply_filters( 'villatheme_check_requires', wp_parse_args( $args, [ 'plugin_name' => '', 'php_version' => '', 'wp_version' => '', 'wc_version' => '', 'require_plugins' => [], ] ) );
  • includes/support.php line 535
    apply_filters( 'villatheme_form_ads_data', ob_get_clean() );
  • includes/admin/settings.php line 184
    do_action( 'villatheme_support_woo-orders-tracking' );
  • widget_title

    filter
    includes/frontend/widget.php line 21
    apply_filters( 'widget_title', $instance['title'] );
  • includes/data.php line 1104
    apply_filters( 'woo_orders_tracking_defined_shipping_carriers', $carriers );
  • includes/admin/import_csv.php line 2276
    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 );
  • includes/frontend/frontend.php line 632
    apply_filters( 'woo_orders_tracking_empty_data_message', esc_html__( 'Please enter your tracking number to track your order.', 'woo-orders-tracking' ) );
  • includes/frontend/frontend.php line 332
    apply_filters( 'woo_orders_tracking_empty_nonce_message', esc_html__( 'Please click button Track to track your order.', 'woo-orders-tracking' ) );
  • includes/admin/orders-track-info.php line 290
    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' ) ) );
  • includes/data.php line 136
    apply_filters( 'woo_orders_tracking_settings', wp_parse_args( $woo_orders_tracking_settings, $this->default ) );
  • includes/admin/settings.php line 1081
    do_action( 'woo_orders_tracking_settings_after_change_order_status' );
  • includes/data.php line 197
    apply_filters( "woo_orders_tracking_settings_default-{$name}", $this->default[ $name ] );
  • includes/data.php line 199
    apply_filters( "woo_orders_tracking_settings_default-{$type}-{$name}", $this->default[ $type ][ $name ] );
  • includes/data.php line 149
    apply_filters( 'woo_orders_tracking_settings_language', $language, $name, $name_sub );
  • includes/data.php line 185
    apply_filters( "woo_orders_tracking_settings-{$name}", $this->params[ $name ] );
  • includes/data.php line 151
    apply_filters( 'woo_orders_tracking_settings-shipping_carriers_define_list', vi_wot_json_encode( self::shipping_carriers() ) );
  • includes/admin/import_csv.php line 2210
    apply_filters( 'woo_orders_tracking_table_html', ob_get_clean(), $order_id );
  • includes/frontend/frontend.php line 483
    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 );
  • includes/frontend/frontend.php line 411
    apply_filters( 'woo_orders_tracking_timeline_track_info', $data['tracking'], $tracking_code, $status );
  • includes/frontend/order-details.php line 42
    apply_filters( 'woocommerce_orders_tracking_display_tracking_for_order_details', $display );
  • includes/admin/settings.php line 572
    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... );
  • includes/data.php line 1653
    apply_filters( 'wot_search_order_item_by_tracking_number', $return, $tracking_code, $order_id, $email, $carrier_slug );
  • includes/class-vi-woo-orders-tracking-trackingmore.php line 433
    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... );
  • includes/class-vi-woo-orders-tracking-trackingmore.php line 415
    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: