WordPress filter hook
woocommerce_adjust_non_base_location_prices
Defined by WooCommerce and fired by 50 plugins in total, running on 8.1M+ sites between them.
“Filters if taxes should be removed from locations outside the store base location.”
How to use woocommerce_adjust_non_base_location_prices
It's a filter: your callback receives the value, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'woocommerce_adjust_non_base_location_prices', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Argument names come from WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
50 plugins that fire woocommerce_adjust_non_base_location_prices
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WooCommerce7+ million installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )includes/admin/settings/class-wc-settings-tax.php:407 -
Google for WooCommerce800,000+ installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )src/Product/WCProductInputAdapter.php:651 -
Product Feed PRO for WooCommerce by AdTribes80,000+ installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )includes/Helpers/Product_Feed_Helper.php:842 -
Germanized for WooCommerce70,000+ installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )includes/compatibility/class-wc-gzd-compatibility-b2b-market.php:131 -
Advanced Dynamic Pricing and Discount Rules for WooCommerce20,000+ installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )BaseVersion/Includes/Core/RuleProcessor/CartTotals.php:50 -
PPOM20,000+ installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )src/Support/Helpers.php:1639 -
Animation Addons for Elementor10,000+ installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )inc/AtomicWidgets/Widgets/LoopGrid/class-loop-query-woo.php:478 -
ATUM WooCommerce Inventory Management and Stock Tracking10,000+ installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', TRUE )classes/Api/Controllers/V3/AtumOrdersController.php:732 -
Discount Rules and Dynamic Pricing for WooCommerce9,000+ installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )includes/class-wccs-cart-totals.php:168 -
Event Booking Manager for WooCommerce6,000+ installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )inc/mep_functions.php:3863 -
Flexible PDF Invoices for WooCommerce & WordPress6,000+ installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', \true )vendor_prefixed/wpdesk/flexible-invoices-core/src/Invoices/WordPress/FindProducts.php:92 -
Dynamic Pricing With Discount Rules for WooCommerce5,000+ installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )includes/discount/class-awdp-discount-order.php:548 -
ELEX WooCommerce Role Based Pricing2,000+ installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )elex-includes/elex-functions.php:66 -
Freetop2,000+ installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )includes/data.php:163 -
E-cab Taxi Booking Manager for Woocommerce2,000+ installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )mp_global/class/MP_Global_Function.php:475 -
WP Hotel Booking WooCommerce1,000+ installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )src/Cart/RoomCartTotal.php:686 -
Zakeke Interactive Product Designer for WooCommerce1,000+ installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )includes/zakeke-core-functions.php:852 -
Phone Orders for WooCommerce1,000+ installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )classes/class-wc-phone-orders-cart-updater.php:89 -
Travelly1,000+ installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )inc/TTBM_Global_Function.php:546 -
Booking and Rental Manager for Bike1,000+ installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )lib/classes/class-admin-menu.php:1060 -
Bopo900+ installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )includes/helper.php:360 -
FooSales700+ installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )admin/helpers/foosales-api-helper.php:269 -
ELEX WooCommerce Dynamic Pricing and Discounts700+ installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )includes/elex-common-functions.php:248 -
Bus Ticket Booking with Seat Reservation700+ installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )mp_global/class/WBTM_Global_Function.php:456 -
Comments Extra Fields For Post,Pages and CPT500+ installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )inc/functions.php:590 -
Appointment Booking Plugin for WooCommerce200+ installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )mp_global/class/MPWPB_Global_Function.php:379 -
Multipurpose Ticket Booking Manager (Bus/Train/Ferry/Boat/Shuttle)60+ installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )inc/clean/mage_helper.php:1002 -
Leat30+ installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )src/Application/Services/GiftcardProductType.php:673 -
Inputo10+ installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )includes/class-inputo-nyp-price.php:182 -
WPMelon Product Customization Fields10+ installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )includes/Cart/Cart_Fees.php:195 -
Wow Extensions for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )extensions/role-based-pricing/wow-includes/wow-functions.php:66 -
TackQuote: Request a Quote & B2B Wholesale for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )includes/class-tack-tax-basis.php:149 -
FacetRouteFewer than 10 installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )facetroute.php:1650 -
MagePeople Shuttle BookingFewer than 10 installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )frontend/helpers/mpsb_helper.php:1355 -
LightPOSFewer than 10 installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )includes/class-tax-guard.php:393 -
Aluleth FunnelsFewer than 10 installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )includes/class-woo-upsell.php:632 -
Rooster LMSFewer than 10 installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )includes/Commerce/WooCommerce/PlanPrice.php:292 -
AP Shipping Rules Tester for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )src/Shipping/class-tax-context.php:33 -
Coder Vibe EU Parcel DutyFewer than 10 installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )includes/class-ioss.php:171 -
TaxKeelFewer than 10 installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )includes/rules/eu.php:349 -
Business Bloomer Advanced Manual Orders for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )includes/amowc-tax-fix.php:30 -
ExtrovaFewer than 10 installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )src/Pricing/TaxHelper.php:40 -
GiftlightFewer than 10 installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )giftlight.php:76 -
iKetch Printing Cost Manager for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )includes/class-tax-preview.php:25 -
The Yeti Dev Bookings LiteFewer than 10 installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )includes/class-tydb-cart.php:1134 -
HookSpark Dynamic Pricing & Discounts for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )src/class-simulationtax.php:109 -
HaywoodTech Conditional Shipping for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )src/Simulator/CartBuilder.php:255 -
MHM RentivaFewer than 10 installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )src/Admin/Booking/Pricing/PriceDisplay.php:135 -
Beplus Fast Product Filter & Live Search for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )src/Search/PriceQueryFilter.php:182 -
Revenue Booster for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_adjust_non_base_location_prices', true )public/class-revenue-booster-for-woocommerce-public.php:889
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.