woocommerce_after_calculate_totals
Usage
add_action( 'woocommerce_after_calculate_totals', 'wp_kama_woocommerce_after_calculate_totals_action' ); /** * Function for `woocommerce_after_calculate_totals` action-hook. * * @param $that * * @return void */ function wp_kama_woocommerce_after_calculate_totals_action( $that ){ // action... }
- $that
- -
Where the hook is called
woocommerce_after_calculate_totals
woocommerce/includes/class-wc-cart.php 1416
do_action( 'woocommerce_after_calculate_totals', $this );
Where the hook is used in WooCommerce
woocommerce/includes/class-wc-cart-session.php 76
add_action( 'woocommerce_after_calculate_totals', array( $this, 'set_session' ), 1000 );