WordPress action hook

delete_tracking_number_from_trackship

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

How to use delete_tracking_number_from_trackship

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

functions.php
add_action( 'delete_tracking_number_from_trackship', function( $tracking_items, $item, $order_id ) {
	// Your code runs here.
}, 10, 3 );

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

2 plugins that fire delete_tracking_number_from_trackship

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

  1. Advanced Shipment Tracking for WooCommerce icon Advanced Shipment Tracking for WooCommerce70,000+ installs do_action( 'delete_tracking_number_from_trackship', $tracking_items, $item['tracking_id'], $order_id ) includes/class-wc-advanced-shipment-tracking-admin.php:1378
  2. StoreSuite icon StoreSuite20+ installs do_action( 'delete_tracking_number_from_trackship', $items, $tracking_id, $order_id ) includes/Integration/ShipmentTrackingIntegration.php:593

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.