Automattic\WooCommerce\Internal\ProductFilters
QueryClauses::should_adjust_price_filters_for_displayed_taxes
If price filters need adjustment to work with displayed taxes, this returns true.
This logic is used when prices are stored in the database differently to how they are being displayed, with regards to taxes.
Method of the class: QueryClauses{}
No Hooks.
Returns
true|false.
Usage
// private - for code of main (parent) class only $result = $this->should_adjust_price_filters_for_displayed_taxes(): bool;
QueryClauses::should_adjust_price_filters_for_displayed_taxes() QueryClauses::should adjust price filters for displayed taxes code WC 10.3.3
private function should_adjust_price_filters_for_displayed_taxes(): bool {
$display = get_option( 'woocommerce_tax_display_shop' );
$database = wc_prices_include_tax() ? 'incl' : 'excl';
return $display !== $database;
}