WC_Cart::needs_shipping_address()
Should the shipping address form be shown.
Method of the class: WC_Cart{}
Hooks from the method
Return
true|false
.
Usage
$WC_Cart = new WC_Cart(); $WC_Cart->needs_shipping_address();
WC_Cart::needs_shipping_address() WC Cart::needs shipping address code WC 9.4.2
public function needs_shipping_address() { return apply_filters( 'woocommerce_cart_needs_shipping_address', true === $this->needs_shipping() && ! wc_ship_to_billing_address_only() ); }