WC_Order::has_shipping_address()
Returns true if the order has a shipping address.
Method of the class: WC_Order{}
No Hooks.
Return
true|false
.
Usage
$WC_Order = new WC_Order(); $WC_Order->has_shipping_address();
Changelog
Since 3.0.4 | Introduced. |
WC_Order::has_shipping_address() WC Order::has shipping address code WC 9.6.1
public function has_shipping_address() { return $this->get_shipping_address_1() || $this->get_shipping_address_2(); }