WC_Order::has_billing_address()publicWC 3.0.4

Returns true if the order has a billing address.

Method of the class: WC_Order{}

No Hooks.

Return

true|false.

Usage

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

Changelog

Since 3.0.4 Introduced.

WC_Order::has_billing_address() code WC 8.6.1

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