WC_Order::get_address( string $type = 'billing' )
Returns the requested address in raw, non-formatted way.
Description Description
Note: Merges raw data with get_prop data so changes are returned too.
Parameters Parameters
- $type
-
(Optional) Billing or shipping. Anything else besides 'billing' will return shipping address.
Default value: 'billing'
Return Return
(array) The stored address after filter.
Source Source
File: includes/class-wc-order.php
public function get_address( $type = 'billing' ) { return apply_filters( 'woocommerce_get_order_address', array_merge( $this->data[ $type ], $this->get_prop( $type, 'view' ) ), $type, $this ); }
Changelog Changelog
Version | Description |
---|---|
2.4.0 | Introduced. |