Title: Tracking code added hook
Last modified: November 24, 2020

---

# Tracking code added hook

 *  Resolved [umbertone](https://wordpress.org/support/users/spolyakov/)
 * (@spolyakov)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/tracking-code-added-hook/)
 * Hi guys! Thanks for the great plugin!
 * I need to trigger a custom function when tracking info is added to an order (
   that’s done by 3rd party using REST API). Is there any specific plugin hook I
   can use or should I stick to WP’s built-in ‘updated_post_meta’?
 * Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Zorem](https://wordpress.org/support/users/zorem/)
 * (@zorem)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/tracking-code-added-hook/#post-13701379)
 * Which Third party do you use? you can use the [Shipment Tracking API endpoint](https://www.zorem.com/docs/woocommerce-advanced-shipment-tracking/rest-api-support/)
   to update the tracking in orders and mark them as Shipped (Completed)
 *  Thread Starter [umbertone](https://wordpress.org/support/users/spolyakov/)
 * (@spolyakov)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/tracking-code-added-hook/#post-13701393)
 * Sorry, maybe my message wasn’t clear. My fulfillment warehouse is already using
   REST API to upload tracking #s into orders and it works nicely. What I need to
   do is execute a custom function when that happens. So I need a hook, they don’t
   mark order as Shipped, so I can’t use ‘woocommerce_order_status_changed’. The
   question is whether your plugin has any custom hooks I can use.
 *  Plugin Author [Zorem](https://wordpress.org/support/users/zorem/)
 * (@zorem)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/tracking-code-added-hook/#post-13701430)
 * Ok, but since it will require custom development, can you provide more details
   on what this function is doing?
 *  Thread Starter [umbertone](https://wordpress.org/support/users/spolyakov/)
 * (@spolyakov)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/tracking-code-added-hook/#post-13701435)
 * I’ll create the function myself, that’s no problem. I’m just trying to understand
   if there’s a hook in your plugin that’s fired after the tracking is added to 
   the order. If not, I’ll just use ‘updated_post_meta’ with some conditional checks.
 *  Plugin Author [Zorem](https://wordpress.org/support/users/zorem/)
 * (@zorem)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/tracking-code-added-hook/#post-13701438)
 * Ok, I am not worried, I was just trying to help… Good Luck
 *  Thread Starter [umbertone](https://wordpress.org/support/users/spolyakov/)
 * (@spolyakov)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/tracking-code-added-hook/#post-13701440)
 * So, there’s no plugin-specific hook that I can use, right? 🙂

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Tracking code added hook’ is closed to new replies.

 * ![](https://ps.w.org/woo-advanced-shipment-tracking/assets/icon-256x256.png?rev
   =2166296)
 * [Advanced Shipment Tracking for WooCommerce](https://wordpress.org/plugins/woo-advanced-shipment-tracking/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-advanced-shipment-tracking/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-advanced-shipment-tracking/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-advanced-shipment-tracking/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-advanced-shipment-tracking/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-advanced-shipment-tracking/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [umbertone](https://wordpress.org/support/users/spolyakov/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/tracking-code-added-hook/#post-13701440)
 * Status: resolved