mardi 31 mars 2015

WooCommerce get order shipping address as seperate feilds

I am building a WooCommerce plugin which sends orders to a 3rd party api.


However i have found there not to be a way to get the individual fields/properties of the order shipping address since v2.3. The only function available is



get_formatted_shipping_address()



Which returns a string and it seems the function which returns a address array "get_shipping_address()" has been Deprecated in version 2.3.


Does anyone know a way to get the shipping address as an array for an order? i don't really want to resort to using a old version of WooCommerce...perhaps there is a hook, action or class override i can do to achieve this?


Any ideas welcome.


Aucun commentaire:

Enregistrer un commentaire