WordPress at Your Fingertips
function is not described

WC_API_Customers::get_customer_shipping_address() protected WC 2.2

Get customer shipping address fields.

{} It's a method of the class: WC_API_Customers{}

Return

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_customer_shipping_address();

Changelog

Since 2.2 Introduced.

Code of WC_API_Customers::get_customer_shipping_address() WC 5.7.1

protected function get_customer_shipping_address() {
	$shipping_address = apply_filters( 'woocommerce_api_customer_shipping_address', array(
		'first_name',
		'last_name',
		'company',
		'address_1',
		'address_2',
		'city',
		'state',
		'postcode',
		'country',
	) );

	return $shipping_address;
}