Skip to content

Instantly share code, notes, and snippets.

@plugin-republic
Created October 9, 2018 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plugin-republic/7622f5aba9e5aaa729aea864c047d914 to your computer and use it in GitHub Desktop.
Save plugin-republic/7622f5aba9e5aaa729aea864c047d914 to your computer and use it in GitHub Desktop.
<?php
$order = wc_get_order( $order_id );
echo $order->get_billing_email();
echo $order->get_billing_first_name();
echo $order->get_billing_last_name();
echo $order->get_billing_address_1();
echo $order->get_billing_address_2();
echo $order->get_billing_postcode();
echo $order->get_billing_state();
echo $order->get_billing_country();
echo $order->get_billing_phone();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment