Get WooCommerce order information like billing, shipping & date.


$order_id = 1234;
$order_data = new WC_Order($order_id);

//Order Date
$order_date = $order_data->order_date;    

//Billing information 
$billing = $order_data->get_address('billing'); 

//Shipping information 
$shipping = $order_data->get_address('shipping');

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s