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
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.
- The topic ‘Integrate custom plugin hook’ is closed to new replies.