woocommerce_cart_needs_shipping_address хук-фильтр . WC 1.0
Should the shipping address form be shown.
Использование
add_filter( 'woocommerce_cart_needs_shipping_address', 'filter_function_name_3171' ); function filter_function_name_3171( $condition ){ // filter... return $condition; }
- $condition
- -
Где вызывается хук
woocommerce_cart_needs_shipping_address
woocommerce/includes/class-wc-cart.php 1518
return apply_filters( 'woocommerce_cart_needs_shipping_address', true === $this->needs_shipping() && ! wc_ship_to_billing_address_only() );