Title: Integrate custom plugin hook
Last modified: May 17, 2023

---

# Integrate custom plugin hook

 *  Resolved Anonymous User
 * (@anonymized-15741666)
 * [3 years ago](https://wordpress.org/support/topic/integrate-custom-plugin-hook/)
 * May I ask you how you add a custom hook to the email template? I can’t figure
   this out.
 * I use plugin **[WooCommerce Shipment Tracking](https://woocommerce.com/products/shipment-tracking/)**
 * My plugin has a meta key `_wc_shipment_tracking_items` and says Developers can
   use the helper function wc_st_add_tracking_number to add tracking info to the
   order. In this helper function, the field `$custom_url` is optional.
   if ( function_exists(‘
   wc_st_add_tracking_number’ ) ) {wc_st_add_tracking_number( $order_id, $tracking_number,
   $provider, $date_shipped, $custom_url );}
 * Which one of the meta key or function I should integrate and how?
   This may be
   a Pro plugin feature but I want to know in advance how this is being done exactly
   or I’m not going to buy this plugin. I’m a newbie I can’t hire a developer so
   I have to figure it out can it be done easily or not.
 * I have code snippet plugin. Please share what is a full php function code to 
   integrate this plugin to your custom email.

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

 *  [villasupport](https://wordpress.org/support/users/villasupport/)
 * (@villasupport)
 * [3 years ago](https://wordpress.org/support/topic/integrate-custom-plugin-hook/#post-16752923)
 * Hi,
 * This is the problem of compatibility with 3rd plugins, with the shipment tracking
   plugins, you can try one of these instructions:
    1. If the tracking info displays on the default WooCommerce email orders, You can
       use the WC hook element, and drag and drop them to the different positions of
       the order table.
    2. Write shortcodes by yourself to display tracking info.
 * Best regards.
    -  This reply was modified 3 years ago by [villasupport](https://wordpress.org/support/users/villasupport/).
 *  Thread Starter Anonymous User
 * (@anonymized-15741666)
 * [3 years ago](https://wordpress.org/support/topic/integrate-custom-plugin-hook/#post-16755649)
    1. Because I don’t use default WooCommere email order template this is not a solution.
       All of my templates are customized.
    2. That sounds like a good solution, I’m not familiar with coding, but perhaps 
       you can send me some hints, i.e how should this shortcode look in full. 
       If 
       you help me with this shortcode – I’m buying this plugin, and I’m sure many 
       more people will buy it as there are many 3rd party tracking plugins that are
       not compatible with your plugin out of the box.
 *  [villasupport](https://wordpress.org/support/users/villasupport/)
 * (@villasupport)
 * [3 years ago](https://wordpress.org/support/topic/integrate-custom-plugin-hook/#post-16759892)
 * Hi,
 * Yes, we will support the shortcodes to display tracking info in the premium version.
 * Best regards.
 *  Thread Starter Anonymous User
 * (@anonymized-15741666)
 * [3 years ago](https://wordpress.org/support/topic/integrate-custom-plugin-hook/#post-16760091)
 * You mean to write a php Shortcode using “Code Snippets” plugin?
    -  This reply was modified 3 years ago by Anonymous User.
 *  [villasupport](https://wordpress.org/support/users/villasupport/)
 * (@villasupport)
 * [3 years ago](https://wordpress.org/support/topic/integrate-custom-plugin-hook/#post-16763568)
 * Hi,
 * In the premium version, we provide support for a shortcode that retrieves information
   from the order meta. However, if you encounter any issues with this shortcode,
   we will offer support for custom shortcodes to retrieve information if it has
   been saved on the order.
 * Best regards.
 *  Thread Starter Anonymous User
 * (@anonymized-15741666)
 * [3 years ago](https://wordpress.org/support/topic/integrate-custom-plugin-hook/#post-16777091)
 * Can you compile this php shortcode to integrate this plugin’s tracking into your
   email?
 * Knowing that it works I would go ahead and buy your plugin, I believe others 
   would buy the Premium version too as it would give people trust that this plugin
   does really support integrating tracking numbers from 3rd party plugins.
 * Besides I need those extra features the Pro version offers. It’s just a first
   step gaining your trust.
 *  [villasupport](https://wordpress.org/support/users/villasupport/)
 * (@villasupport)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/integrate-custom-plugin-hook/#post-16788716)
 * Hi,
 * Please contact us at [support@villatheme.com](https://wordpress.org/support/topic/integrate-custom-plugin-hook/support@villatheme.com?output_format=md)
   for further assistance.
 * Best regards.

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

The topic ‘Integrate custom plugin hook’ is closed to new replies.

 * ![](https://ps.w.org/email-template-customizer-for-woo/assets/icon-256x256.gif?
   rev=3080872)
 * [Email Template Customizer for WooCommerce](https://wordpress.org/plugins/email-template-customizer-for-woo/)
 * [Support Threads](https://wordpress.org/support/plugin/email-template-customizer-for-woo/)
 * [Active Topics](https://wordpress.org/support/plugin/email-template-customizer-for-woo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/email-template-customizer-for-woo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/email-template-customizer-for-woo/reviews/)

## Tags

 * [custom hook](https://wordpress.org/support/topic-tag/custom-hook/)

 * 7 replies
 * 2 participants
 * Last reply from: [villasupport](https://wordpress.org/support/users/villasupport/)
 * Last activity: [2 years, 12 months ago](https://wordpress.org/support/topic/integrate-custom-plugin-hook/#post-16788716)
 * Status: resolved