WordPress at a glance
filter is not described

woocommerce_cart_total filter-hook . WC 3.2.0

Gets cart total after calculation.

Usage

add_filter( 'woocommerce_cart_total', 'filter_function_name_6547' );
function filter_function_name_6547( $context ){
	// filter...

	return $context;
}
$context(string)
If the context is view, the value will be formatted for display. This keeps it compatible with pre-3.2 versions.

Changelog

Since 3.2.0 Introduced.

Where the hook is called

WC_Cart::get_total()
woocommerce_cart_total
woocommerce/includes/class-wc-cart.php 297
return 'view' === $context ? apply_filters( 'woocommerce_cart_total', wc_price( $total ) ) : $total;

Where the hook is used (in WC core)

Usage not found!