WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Самая быстрая Тема-конструктор для WordPress
фильтр не описан

woocommerce_adjust_non_base_location_prices хук-фильтр . 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.

Использование

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

	return $true;
}
$true
-

Где вызывается хук

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 1010
} elseif ( $tax_rates !== $base_tax_rates && apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) ) {
woocommerce/includes/wc-product-functions.php 995
$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 1060
$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 418
if ( apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) ) {
woocommerce/includes/class-wc-cart-totals.php 713
$adjust_non_base_location_prices = apply_filters( 'woocommerce_adjust_non_base_location_prices', true );
woocommerce/packages/woocommerce-blocks/src/StoreApi/Utilities/ProductQuery.php 447
$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 );

Где используется хук в ядре WooCommerce

Использование не найдено.