WC_Order::has_shipping_address()publicWC 3.0.4

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() code WC 8.7.0

public function has_shipping_address() {
	return $this->get_shipping_address_1() || $this->get_shipping_address_2();
}