woocommerce_cart_shipping_total
Использование
add_filter( 'woocommerce_cart_shipping_total', 'wp_kama_woocommerce_cart_shipping_total_filter', 10, 2 );
/**
* Function for `woocommerce_cart_shipping_total` filter-hook.
*
* @param $total
* @param $that
*
* @return
*/
function wp_kama_woocommerce_cart_shipping_total_filter( $total, $that ){
// filter...
return $total;
}
- $total
- -
- $that
- -
Где вызывается хук
woocommerce_cart_shipping_total
woocommerce/includes/class-wc-cart.php 1825
return apply_filters( 'woocommerce_cart_shipping_total', $total, $this );