woocommerce_cart_hide_zero_taxes

woocommerce_cart_hide_zero_taxes

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_cart_hide_zero_taxes') is found 1 times:

  • /includes/class-wc-cart.php line 898
    				$tax_totals[ $code ]->formatted_amount = wc_price( $tax_totals[ $code ]->amount );
    			}
    		}
    
    		if ( apply_filters( 'woocommerce_cart_hide_zero_taxes', true ) ) {
    			$amounts    = array_filter( wp_list_pluck( $tax_totals, 'amount' ) );
    			$tax_totals = array_intersect_key( $tax_totals, $amounts );
    		}
    
    		return apply_filters( 'woocommerce_cart_tax_totals', $tax_totals, $this );
    	}