woocommerce_calculated_total filter-hookWC 1.0

Usage

add_filter( 'woocommerce_calculated_total', 'wp_kama_woocommerce_calculated_total_filter', 10, 2 );

/**
 * Function for `woocommerce_calculated_total` filter-hook.
 * 
 * @param  $total 
 * @param  $cart  
 *
 * @return 
 */
function wp_kama_woocommerce_calculated_total_filter( $total, $cart ){

	// filter...
	return $total;
}
$total
-
$cart
-

Where the hook is called

WC_Cart_Totals::calculate_totals()
woocommerce_calculated_total
woocommerce/includes/class-wc-cart-totals.php 884
$this->cart->set_total( max( 0, apply_filters( 'woocommerce_calculated_total', $this->get_total( 'total' ), $this->cart ) ) );

Where the hook is used in WooCommerce

Usage not found.