woocommerce_cart_subtotal
Usage
add_filter( 'woocommerce_cart_subtotal', 'wp_kama_woocommerce_cart_subtotal_filter', 10, 3 ); /** * Function for `woocommerce_cart_subtotal` filter-hook. * * @param $cart_subtotal * @param $compound * @param $that * * @return */ function wp_kama_woocommerce_cart_subtotal_filter( $cart_subtotal, $compound, $that ){ // filter... return $cart_subtotal; }
- $cart_subtotal
- -
- $compound
- -
- $that
- -
Where the hook is called
woocommerce_cart_subtotal
woocommerce/includes/class-wc-cart.php 2035
return apply_filters( 'woocommerce_cart_subtotal', $cart_subtotal, $compound, $this );