1// Get Order ID and Key
2$order->get_id();
3$order->get_order_key();
4
5// Get Order Totals $0.00
6$order->get_formatted_order_total();
7$order->get_cart_tax();
8$order->get_currency();
9$order->get_discount_tax();
10$order->get_discount_to_display();
11$order->get_discount_total();
12$order->get_fees();
13$order->get_formatted_line_subtotal();
14$order->get_shipping_tax();
15$order->get_shipping_total();
16$order->get_subtotal();
17$order->get_subtotal_to_display();
18$order->get_tax_location();
19$order->get_tax_totals();
20$order->get_taxes();
21$order->get_total();
22$order->get_total_discount();
23$order->get_total_tax();
24$order->get_total_refunded();
25$order->get_total_tax_refunded();
26$order->get_total_shipping_refunded();
27$order->get_item_count_refunded();
28$order->get_total_qty_refunded();
29$order->get_qty_refunded_for_item();
30$order->get_total_refunded_for_item();
31$order->get_tax_refunded_for_item();
32$order->get_total_tax_refunded_by_rate_id();
33$order->get_remaining_refund_amount();
34
35// Get and Loop Over Order Items
36foreach ( $order->get_items() as $item_id => $item ) {
37 $product_id = $item->get_product_id();
38 $variation_id = $item->get_variation_id();
39 $product = $item->get_product();
40 $name = $item->get_name();
41 $quantity = $item->get_quantity();
42 $subtotal = $item->get_subtotal();
43 $total = $item->get_total();
44 $tax = $item->get_subtotal_tax();
45 $taxclass = $item->get_tax_class();
46 $taxstat = $item->get_tax_status();
47 $allmeta = $item->get_meta_data();
48 $somemeta = $item->get_meta( '_whatever', true );
49 $type = $item->get_type();
50}
51
52// Other Secondary Items Stuff
53$order->get_items_key();
54$order->get_items_tax_classes();
55$order->get_item_count();
56$order->get_item_total();
57$order->get_downloadable_items();
58
59// Get Order Lines
60$order->get_line_subtotal();
61$order->get_line_tax();
62$order->get_line_total();
63
64// Get Order Shipping
65$order->get_shipping_method();
66$order->get_shipping_methods();
67$order->get_shipping_to_display();
68
69// Get Order Dates
70$order->get_date_created();
71$order->get_date_modified();
72$order->get_date_completed();
73$order->get_date_paid();
74
75// Get Order User, Billing & Shipping Addresses
76$order->get_customer_id();
77$order->get_user_id();
78$order->get_user();
79$order->get_customer_ip_address();
80$order->get_customer_user_agent();
81$order->get_created_via();
82$order->get_customer_note();
83$order->get_address_prop();
84$order->get_billing_first_name();
85$order->get_billing_last_name();
86$order->get_billing_company();
87$order->get_billing_address_1();
88$order->get_billing_address_2();
89$order->get_billing_city();
90$order->get_billing_state();
91$order->get_billing_postcode();
92$order->get_billing_country();
93$order->get_billing_email();
94$order->get_billing_phone();
95$order->get_shipping_first_name();
96$order->get_shipping_last_name();
97$order->get_shipping_company();
98$order->get_shipping_address_1();
99$order->get_shipping_address_2();
100$order->get_shipping_city();
101$order->get_shipping_state();
102$order->get_shipping_postcode();
103$order->get_shipping_country();
104$order->get_address();
105$order->get_shipping_address_map_url();
106$order->get_formatted_billing_full_name();
107$order->get_formatted_shipping_full_name();
108$order->get_formatted_billing_address();
109$order->get_formatted_shipping_address();
110
111// Get Order Payment Details
112$order->get_payment_method();
113$order->get_payment_method_title();
114$order->get_transaction_id();
115
116// Get Order URLs
117$order->get_checkout_payment_url();
118$order->get_checkout_order_received_url();
119$order->get_cancel_order_url();
120$order->get_cancel_order_url_raw();
121$order->get_cancel_endpoint();
122$order->get_view_order_url();
123$order->get_edit_order_url();
124
125// Get Order Status
126$order->get_status();
127