WC_API_Customers::get_customer_billing_address()protectedWC 2.2

Get customer billing address fields.

Method of the class: WC_API_Customers{}

Return

Array.

Usage

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

Changelog

Since 2.2 Introduced.

WC_API_Customers::get_customer_billing_address() code WC 8.7.0

protected function get_customer_billing_address() {
	$billing_address = apply_filters( 'woocommerce_api_customer_billing_address', array(
		'first_name',
		'last_name',
		'company',
		'address_1',
		'address_2',
		'city',
		'state',
		'postcode',
		'country',
		'email',
		'phone',
	) );

	return $billing_address;
}