WC_Abstract_Order::get_shipping_methods
Return an array of shipping costs within this order.
Method of the class: WC_Abstract_Order{}
No Hooks.
Returns
WC_Order_Item_Shipping[].
Usage
$WC_Abstract_Order = new WC_Abstract_Order(); $WC_Abstract_Order->get_shipping_methods();
WC_Abstract_Order::get_shipping_methods() WC Abstract Order::get shipping methods code WC 10.6.2
public function get_shipping_methods() {
return $this->get_items( 'shipping' );
}