woocommerce_get_cart_tax

woocommerce_get_cart_tax

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_get_cart_tax') is found 1 times:

  • /includes/class-wc-cart.php line 2067
    	 */
    	public function get_cart_tax() {
    		$cart_total_tax = wc_round_tax_total( $this->get_cart_contents_tax() + $this->get_shipping_tax() + $this->get_fee_tax() );
    
    		return apply_filters( 'woocommerce_get_cart_tax', $cart_total_tax ? wc_price( $cart_total_tax ) : '' );
    	}
    
    	/**
    	 * Get a tax amount.
    	 *
    	 * @param  string $tax_rate_id ID of the tax rate to get taxes for.