WC_API_Customers::get_customer_shipping_address()
Get customer shipping address fields.
Метод класса: WC_API_Customers{}
Хуки из метода
Возвращает
Массив
.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_customer_shipping_address();
Список изменений
С версии 2.2 | Введена. |
Код WC_API_Customers::get_customer_shipping_address() WC API Customers::get customer shipping address WC 7.7.0
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; }