woocommerce_cart_needs_shipping

woocommerce_cart_needs_shipping

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_cart_needs_shipping') is found 2 times:

  • /includes/class-wc-cart.php line 1549
    				break;
    			}
    		}
    
    		return apply_filters( 'woocommerce_cart_needs_shipping', $needs_shipping );
    	}
    
    	/**
    	 * Should the shipping address form be shown.
    	 *
    	 * @return bool
    
  • /includes/gateways/cod/class-wc-gateway-cod.php line 168
    				}
    			}
    		}
    
    		$needs_shipping = apply_filters( 'woocommerce_cart_needs_shipping', $needs_shipping );
    
    		// Virtual order, with virtual disabled.
    		if ( ! $this->enable_for_virtual && ! $needs_shipping ) {
    			return false;
    		}