woocommerce_before_calculate_totals хук-событие . WC 1.0
Использование
add_action( 'woocommerce_before_calculate_totals', 'action_function_name_5682' ); function action_function_name_5682( $that ){ // action... }
- $that
- -
Где вызывается хук
woocommerce_before_calculate_totals
woocommerce/includes/class-wc-cart.php 1367
do_action( 'woocommerce_before_calculate_totals', $this );