woocommerce_cart_discounts_before_tax
Usage
add_filter( 'woocommerce_cart_discounts_before_tax', 'wp_kama_woocommerce_cart_discounts_before_tax_filter', 10, 2 ); /** * Function for `woocommerce_cart_discounts_before_tax` filter-hook. * * @param $discounts_before_tax * @param $that * * @return */ function wp_kama_woocommerce_cart_discounts_before_tax_filter( $discounts_before_tax, $that ){ // filter... return $discounts_before_tax; }
- $discounts_before_tax
- -
- $that
- -
Where the hook is called
woocommerce_cart_discounts_before_tax
woocommerce/includes/legacy/class-wc-legacy-cart.php 402
return apply_filters( 'woocommerce_cart_discounts_before_tax', $discounts_before_tax, $this );