Tag: order

WooCommerce: Easily get Order info from $order Object

WooCommerce: Easily get Order info from $order Object

1. You have access to $order Hooks (do_action and apply_filters) use additional arguments which are passed on to the function. If they allow you to use the $order object you’re in business. Here’s how to get all the order information: // Get Order ID $order->get_id(); $order->get_order_key(); // Get Order Totals $0.00 $order->get_formatted_order_total(); $order->get_cart_tax(); $order->get_currency(); $order->get_discount_tax();…

Read More Read More