How to retrieve Shipping Method of an Order in WooCommerce?
Since WooCommerce 3, if you want to get the shipping formatted method title(s), you can better use WC_Order
method get_shipping_method()
like:
// Get the WC_Order object from the Order ID$order = wc_get_order( $order_id );// Output the shipping method(s) formatted method title(s)echo $order->get_shipping_method();
For other shipping item details see the following threads: