Skip to content

Instantly share code, notes, and snippets.

@Longkt
Last active April 24, 2018 15:55
Show Gist options
  • Save Longkt/074c8901d20cb2ace63f32a6fe48bc21 to your computer and use it in GitHub Desktop.
Save Longkt/074c8901d20cb2ace63f32a6fe48bc21 to your computer and use it in GitHub Desktop.
<?php
$order = new WC_Order(206); // Order id
$billing_address = $order->get_address('billing');
echo "<pre>";
print_r($billing_address);
echo "</pre>";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment