WordPress action hook

vi_woo_orders_tracking_single_edit_tracking_change

Fired by 2 WordPress plugins, running on 10K+ sites between them.

How to use vi_woo_orders_tracking_single_edit_tracking_change

It's an action: your callback runs at that point and receives 5 arguments. Nothing needs to be returned. Add this to your theme's functions.php or a small custom plugin:

functions.php
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 );

Argument names come from Trakoo's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

2 plugins that fire vi_woo_orders_tracking_single_edit_tracking_change

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. Trakoo icon Trakoo10,000+ installs do_action( 'vi_woo_orders_tracking_single_edit_tracking_change', $tracking_change, $current_tracking_data, $item_id, $order_id, $response ) includes/admin/orders-edit-tracking.php:307
  2. GG Multiple Payment Routing for WooCommerce icon GG Multiple Payment Routing for WooCommerce30+ installs do_action( 'vi_woo_orders_tracking_single_edit_tracking_change', $tracking_change, $current_tracking_data, $item_id, $order_id, $response ) inc/Common/Api/Tracking.php:331

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.