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'


Top ↑

Return Return

(array) The stored address after filter.


Top ↑

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 );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.4.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.