add_filter( 'wpo_order_history_customer_table_headers', function($headers) { $new_headers = array(); foreach($headers as $header) { $new_headers[] = $header; if ( $header['key'] == 'status') $new_headers[] = array( 'key'=>'shipment_tracking', 'label'=>'Shipment Tracking', 'escape'=>false); } return $new_headers ; }); add_filter('wpo_order_history_customer_table_row', function($data,$order) { if( class_exists('WC_Shipment_Tracking_Actions') ) $data['shipment_tracking'] = WC_Shipment_Tracking_Actions::get_instance()->get_shipment_tracking_column( $order->get_id() ); return $data; },10,2);
Show "Shipment Tracking" in orders history (Pro feature) Print
Created by: Alex Prokaev
Modified on: Mon, 7 Oct, 2019 at 9:59 AM
Did you find it helpful? Yes No
Send feedbackSorry we couldn't be helpful. Help us improve this article with your feedback.