Order
For loop type woo_order, here are the query parameters and fields.
Query parameters
billing_address_1- Billing address 1
Type: stringbilling_address_2- Billing address 2
Type: stringbilling_city- Billing city
Type: stringbilling_company- Billing company
Type: stringbilling_country- Billing country
Type: stringbilling_email- Billing email
Type: stringbilling_first_name- Billing first name
Type: stringbilling_last_name- Billing last name
Type: stringbilling_phone- Billing phone
Type: stringbilling_postcode- Billing postcode
Type: stringbilling_state- Billing state
Type: stringcart_tax- Cart tax
Type: numbercount- Limit number of results, or -1 for all
Type: numbercurrency- Currency used in order
Type: stringcustomer_id- User ID
Type: number, stringdiscount_tax- Discount tax
Type: numberdiscount_total- Total discount
Type: numberexclude- Exclude product ID(s)
Type: arrayorder- Order
Type: string - Default: descorder_id- Order ID(s)
Type: number, arrayorderby- Order by field
Type: string - Default: nameparent- Parent product ID(s)
Type: numberparent_exclude- Exclude parent product ID(s)
Type: arraypayment_method- Slug of payment method used
Type: stringpayment_method_title- Full title of payment method used
Type: stringprices_include_tax- Prices include tax
Type: stringshipping_address_1- Shipping address 1
Type: stringshipping_address_2- Shipping address 2
Type: stringshipping_city- Shipping city
Type: stringshipping_company- Shipping company
Type: stringshipping_country- Shipping country
Type: stringshipping_email- Shipping email
Type: stringshipping_first_name- Shipping first name
Type: stringshipping_last_name- Shipping last name
Type: stringshipping_phone- Shipping phone
Type: stringshipping_postcode- Shipping postcode
Type: stringshipping_state- Shipping state
Type: stringshipping_tax- Shipping tax
Type: numbershipping_total- Shipping total
Type: numberstatus- Status
Type: string - Default: completedtotal- Order total
Type: numbertype- Order Types
Type: string - Default: shop_orderuser- User ID, name, or "current"
Type: number, string, array
Fields
billing_address_1- Billing address 1billing_address_2- Billing address 2billing_city- Billing citybilling_company- Billing companybilling_country- Billing countrybilling_email- Billing emailbilling_first_name- Billing first namebilling_last_name- Billing last namebilling_phone- Billing phonebilling_postcode- Billing postcodebilling_state- Billing statecancel_endpoint- Helper method to return the cancel endpointcancel_order_url- Generates a URL so that a customer can cancel their (unpaid - pending) ordercart_hash- Get cart hashcart_tax- Gets cart tax amountcheckout_order_received_url- Generates a URL for the thanks page (order received)checkout_payment_url- Generates a URL so that a customer can pay for their (unpaid - pending) order. Pass "true" for the checkout version which does not offer gateway choicescreated_via- Get created viacurrency- Gets order currencycustomer_id- Customer IDcustomer_ip_address- Get customer ip addresscustomer_note- Get customer notecustomer_user_agent- Get customer user agentdate_completed- Date completeddate_created- Date createddate_modified- Date modifieddate_paid- Date paiddiscount_tax- Get discount_taxdiscount_to_display- Get the discount amount (formatted)discount_total- Get discount_totalformatted_billing_address- Get a formatted billing address for the orderformatted_billing_full_name- Get a formatted billing full nameformatted_order_total- Gets order total - formatted for displayformatted_shipping_address- Get a formatted shipping address for the orderformatted_shipping_full_name- Get a formatted shipping full namehas_billing_address- Returns true if the order has a billing addresshas_free_item- Returns true if the order contains a free producthas_shipping_address- Returns true if the order has a shipping addressid- IDis_paid- Returns if an order has been paid for based on the order statusitem_count- Gets the count of order items of a certain typeitem_count_refunded- Gets the count of order items of a certain type that have been refundeditems- Return an OrderItem Loop of items within this orderneeds_payment- Checks if an order needs payment, based on status and order totalneeds_processing- See if the order needs processing before it can be completedorder_item_totals- Get totals for display on pages and in emailsorder_key- Get order keyorder_number- Gets the order number for display (by default, order ID)payment_method- Gets the payment methodpayment_method_title- Get payment method titleprices_include_tax- Gets prices including taxrefunds- Get order refundsremaining_refund_amount- How much money is left to refundremaining_refund_items- How many items are left to refundshipping_address_1- Billing address 1shipping_address_2- Billing address 2shipping_address_map_url- Get a formatted shipping address for the ordershipping_city- Billing cityshipping_company- Billing companyshipping_country- Billing countryshipping_email- Billing emailshipping_first_name- Billing first nameshipping_last_name- Billing last nameshipping_method- Gets formatted shipping method titleshipping_phone- Billing phoneshipping_postcode- Billing postcodeshipping_state- Billing stateshipping_tax- Get shipping_taxshipping_total- Get shipping_totalstatus- Statussubtotal- Gets order subtotalsubtotal_to_display- Gets subtotal - subtotal is shown before discounts, but with localised taxestax_totals- Get taxes, merged by code, formatted ready for outputtotal- Gets order grand total. incl. taxes. Used in gatewaystotal_qty_refunded- Get the total number of items refundedtotal_refunded- Get amount already refundedtotal_shipping_refunded- Get the total shipping refundedtotal_tax- Get total tax amounttotal_tax_refunded- Get the total tax refundedtransaction_id- Get transaction idview_order_url- Generates a URL to view an order from the my account page