This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Boxtal\BoxtalConnectWoocommerce\Util\Order_Util; | |
use Boxtal\BoxtalConnectWoocommerce\Order\Controller; | |
// send email to custom with tracking number on order shipped | |
add_action('boxtal_connect_order_shipped', 'send_tracking_number', 10, 2); | |
function send_tracking_number($order_id) { | |
$order = wc_get_order($order_id); | |
$email = $order->get_billing_email(); |