woocommerce_cart_total filter-hookWC 1.0

Usage

add_filter( 'woocommerce_cart_total', 'wp_kama_woocommerce_cart_total_filter' );

/**
 * Function for `woocommerce_cart_total` filter-hook.
 * 
 * @param  $wc_price 
 *
 * @return 
 */
function wp_kama_woocommerce_cart_total_filter( $wc_price ){

	// filter...
	return $wc_price;
}
$wc_price
-

Where the hook is called

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

Where the hook is used in WooCommerce

Usage not found.