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

Should the shipping address form be shown.

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

add_filter( 'woocommerce_cart_needs_shipping_address', 'wp_kama_woocommerce_cart_needs_shipping_address_filter' );

/**
 * Function for `woocommerce_cart_needs_shipping_address` filter-hook.
 * 
 * @param  $condition 
 *
 * @return 
 */
function wp_kama_woocommerce_cart_needs_shipping_address_filter( $condition ){

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

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

WC_Cart::needs_shipping_address()
woocommerce_cart_needs_shipping_address
woocommerce/includes/class-wc-cart.php 1550
return apply_filters( 'woocommerce_cart_needs_shipping_address', true === $this->needs_shipping() && ! wc_ship_to_billing_address_only() );

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

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