woocommerce_cart_needs_shipping хук-фильтрWC 1.0

Использование

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
-

Где вызывается хук

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 );

Где используется хук в WooCommerce

Использование не найдено.