WordPress at Your Fingertips
function is not described

WC_Cart::needs_shipping_address() public WC 1.0

Should the shipping address form be shown.

{} It's a method of the class: WC_Cart{}

Return

true|false.

Usage

$WC_Cart = new WC_Cart();
$WC_Cart->needs_shipping_address();

Code of WC_Cart::needs_shipping_address() WC 5.6.0

public function needs_shipping_address() {
	return apply_filters( 'woocommerce_cart_needs_shipping_address', true === $this->needs_shipping() && ! wc_ship_to_billing_address_only() );
}