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