woocommerce_cart_needs_shipping filter-hookWC 1.0

Usage

add_filter( 'woocommerce_cart_needs_shipping', 'wp_kama_woocommerce_cart_needs_shipping_filter' );

/**
 * Function for `woocommerce_cart_needs_shipping` filter-hook.
 * 
 * @param  $needs_shipping 
 *
 * @return 
 */
function wp_kama_woocommerce_cart_needs_shipping_filter( $needs_shipping ){

	// filter...
	return $needs_shipping;
}
$needs_shipping
-

Where the hook is called

WC_Cart::needs_shipping()
woocommerce_cart_needs_shipping
WC_Gateway_COD::is_available()
woocommerce_cart_needs_shipping
woocommerce/includes/class-wc-cart.php 1538
return apply_filters( 'woocommerce_cart_needs_shipping', $needs_shipping );
woocommerce/includes/gateways/cod/class-wc-gateway-cod.php 147
$needs_shipping = apply_filters( 'woocommerce_cart_needs_shipping', $needs_shipping );

Where the hook is used in WooCommerce

Usage not found.