woocommerce

WooCommerce – Get Order Info (items, billing, shipping, etc) From $order Object

As a WooCommerce developer, every day I repeat many coding operations that make me waste my time. For Example : How to get Order ID? How to get an order object? How to get order details? How to get shipping and billing info from $order Object? How to get order Object? How to get order total? How to get order items? How to get order shipping info (shipping details)? How to get order billing info (billing details)? Sometimes, you may have the $order_id available for example. In that scenario, you can “get” the order object with the wc_get_order WooCommerce function….