WC_Order::has_billing_address │ public │ WC 3.0.4

Returns true if the order has a billing address.

Method of the class: WC_Order{}

No Hooks.

Returns

boolean.

Usage

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

Changelog

Since 3.0.4 Introduced.

WC_Order::has_billing_address() code WC 11.2.1

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