woocommerce_calculate_totals хук-событие . WC 1.0
Allow plugins to hook and alter totals before final total is calculated.
Использование
add_action( 'woocommerce_calculate_totals', 'action_function_name_4319' ); function action_function_name_4319( $cart ){ // action... }
- $cart
- -
Где вызывается хук
woocommerce_calculate_totals
woocommerce/includes/class-wc-cart-totals.php 869
do_action( 'woocommerce_calculate_totals', $this->cart );