WC_Order::has_billing_address
Returns true if the order has a billing address.
Method of the class: WC_Order{}
No Hooks.
Returns
true|false.
Usage
$WC_Order = new WC_Order(); $WC_Order->has_billing_address();
Changelog
| Since 3.0.4 | Introduced. |
WC_Order::has_billing_address() WC Order::has billing address code WC 10.5.0
public function has_billing_address() {
return $this->get_billing_address_1() || $this->get_billing_address_2();
}