WC_Order::has_billing_address()publicWC 3.0.4

Returns true if the order has a billing address.

Метод класса: WC_Order{}

Хуков нет.

Возвращает

true|false.

Использование

$WC_Order = new WC_Order();
$WC_Order->has_billing_address();

Список изменений

С версии 3.0.4 Введена.

Код WC_Order::has_billing_address() WC 8.7.0

public function has_billing_address() {
	return $this->get_billing_address_1() || $this->get_billing_address_2();
}