init(); } public function init() { add_action('woocommerce_order_details_before_order_table', array($this, 'wooacd_shipping_tracker'), 1, 1); if (get_option('acl_wooacd_traveller' == 'enable')) { add_filter('woocommerce_account_orders_columns', array($this, 'add_account_orders_traveler_column'), 10, 1); add_action('woocommerce_my_account_my_orders_column_traveler-column', array($this, 'add_account_orders_traveler_column_rows')); } if (get_option('acl_wooacd_estimated_delivery_time') == 'enable') { add_filter('woocommerce_account_orders_columns', array($this, 'add_account_orders_delivery_column'), 10, 1); add_action('woocommerce_my_account_my_orders_column_delivery-column', array($this, 'add_account_orders_delivery_column_rows')); add_action('woocommerce_checkout_create_order', array($this, 'add_estimated_delivery_time')); } } public function wooacd_shipping_tracker($order_id) { $order = wc_get_order($order_id); $trackSteps = $order->get_meta('_wooacd_shipping_tracker'); ?>