WordPress at Your Fingertips
filter is not described

woocommerce_adjust_non_base_location_prices filter-hook . WC 1.0

The woocommerce_adjust_non_base_location_prices filter can stop base taxes being taken off when dealing with out of base locations.

  • e.g. If a product costs 10 including tax, all users will pay 10 regardless of location and taxes.
  • This feature is experimental @since 2.4.7 and may change in the future. Use at your risk.

Usage

add_filter( 'woocommerce_adjust_non_base_location_prices', 'filter_function_name_1016' );
function filter_function_name_1016( $true ){
	// filter...

	return $true;
}
$true
-

Where the hook is called

wc_get_price_including_tax()
woocommerce_adjust_non_base_location_prices
wc_get_price_excluding_tax()
woocommerce_adjust_non_base_location_prices
WC_Cart_Totals::remove_item_base_taxes()
woocommerce_adjust_non_base_location_prices
WC_Cart_Totals::calculate_item_subtotals()
woocommerce_adjust_non_base_location_prices
ProductQuery::adjust_price_filter_for_tax_class()
woocommerce_adjust_non_base_location_prices
woocommerce/includes/wc-product-functions.php 1036
} elseif ( $tax_rates !== $base_tax_rates && apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) ) {
woocommerce/includes/wc-product-functions.php 1021
$remove_taxes = apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) ? WC_Tax::calc_tax( $line_price, $base_tax_rates, true ) : WC_Tax::calc_tax( $line_price, $tax_rates, true );
woocommerce/includes/wc-product-functions.php 1086
$remove_taxes   = apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) ? WC_Tax::calc_tax( $line_price, $base_tax_rates, true ) : WC_Tax::calc_tax( $line_price, $tax_rates, true );
woocommerce/includes/class-wc-cart-totals.php 420
if ( apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) ) {
woocommerce/includes/class-wc-cart-totals.php 715
$adjust_non_base_location_prices = apply_filters( 'woocommerce_adjust_non_base_location_prices', true );
woocommerce/packages/woocommerce-blocks/src/StoreApi/Utilities/ProductQuery.php 452
$taxes = apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) ? WC_Tax::calc_tax( $price_filter, $base_tax_rates, true ) : WC_Tax::calc_tax( $price_filter, $tax_rates, true );

Where in WP core the hook is used WooCommerce

Usage not found.