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:

functions.php
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.

  1. WooCommerce icon WooCommerce7+ million installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) includes/admin/settings/class-wc-settings-tax.php:407
  2. Google for WooCommerce icon Google for WooCommerce800,000+ installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) src/Product/WCProductInputAdapter.php:651
  3. Product Feed PRO for WooCommerce by AdTribes icon 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
  4. Germanized for WooCommerce icon Germanized for WooCommerce70,000+ installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) includes/compatibility/class-wc-gzd-compatibility-b2b-market.php:131
  5. Advanced Dynamic Pricing and Discount Rules for WooCommerce icon 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
  6. PPOM icon PPOM20,000+ installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) src/Support/Helpers.php:1639
  7. Animation Addons for Elementor icon 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
  8. ATUM WooCommerce Inventory Management and Stock Tracking icon 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
  9. Discount Rules and Dynamic Pricing for WooCommerce icon 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
  10. Event Booking Manager for WooCommerce icon Event Booking Manager for WooCommerce6,000+ installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) inc/mep_functions.php:3863
  11. Flexible PDF Invoices for WooCommerce & WordPress icon 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
  12. Dynamic Pricing With Discount Rules for WooCommerce icon 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
  13. ELEX WooCommerce Role Based Pricing icon ELEX WooCommerce Role Based Pricing2,000+ installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) elex-includes/elex-functions.php:66
  14. Freetop icon Freetop2,000+ installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) includes/data.php:163
  15. E-cab Taxi Booking Manager for Woocommerce icon 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
  16. WP Hotel Booking WooCommerce icon WP Hotel Booking WooCommerce1,000+ installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) src/Cart/RoomCartTotal.php:686
  17. Zakeke Interactive Product Designer for WooCommerce icon Zakeke Interactive Product Designer for WooCommerce1,000+ installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) includes/zakeke-core-functions.php:852
  18. Phone Orders for WooCommerce icon Phone Orders for WooCommerce1,000+ installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) classes/class-wc-phone-orders-cart-updater.php:89
  19. Travelly icon Travelly1,000+ installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) inc/TTBM_Global_Function.php:546
  20. Booking and Rental Manager for Bike icon Booking and Rental Manager for Bike1,000+ installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) lib/classes/class-admin-menu.php:1060
  21. Bopo icon Bopo900+ installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) includes/helper.php:360
  22. FooSales icon FooSales700+ installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) admin/helpers/foosales-api-helper.php:269
  23. ELEX WooCommerce Dynamic Pricing and Discounts icon ELEX WooCommerce Dynamic Pricing and Discounts700+ installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) includes/elex-common-functions.php:248
  24. Bus Ticket Booking with Seat Reservation icon Bus Ticket Booking with Seat Reservation700+ installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) mp_global/class/WBTM_Global_Function.php:456
  25. Comments Extra Fields For Post,Pages and CPT icon Comments Extra Fields For Post,Pages and CPT500+ installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) inc/functions.php:590
  26. Appointment Booking Plugin for WooCommerce icon Appointment Booking Plugin for WooCommerce200+ installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) mp_global/class/MPWPB_Global_Function.php:379
  27. Multipurpose Ticket Booking Manager (Bus/Train/Ferry/Boat/Shuttle) icon 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
  28. Leat icon Leat30+ installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) src/Application/Services/GiftcardProductType.php:673
  29. Inputo icon Inputo10+ installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) includes/class-inputo-nyp-price.php:182
  30. WPMelon Product Customization Fields icon WPMelon Product Customization Fields10+ installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) includes/Cart/Cart_Fees.php:195
  31. Wow Extensions for WooCommerce icon 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
  32. TackQuote: Request a Quote & B2B Wholesale for WooCommerce icon 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
  33. FacetRoute icon FacetRouteFewer than 10 installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) facetroute.php:1650
  34. MagePeople Shuttle Booking icon MagePeople Shuttle BookingFewer than 10 installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) frontend/helpers/mpsb_helper.php:1355
  35. LightPOS icon LightPOSFewer than 10 installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) includes/class-tax-guard.php:393
  36. Aluleth Funnels icon Aluleth FunnelsFewer than 10 installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) includes/class-woo-upsell.php:632
  37. Rooster LMS icon Rooster LMSFewer than 10 installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) includes/Commerce/WooCommerce/PlanPrice.php:292
  38. AP Shipping Rules Tester for WooCommerce icon 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
  39. Coder Vibe EU Parcel Duty icon Coder Vibe EU Parcel DutyFewer than 10 installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) includes/class-ioss.php:171
  40. TaxKeel icon TaxKeelFewer than 10 installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) includes/rules/eu.php:349
  41. Business Bloomer Advanced Manual Orders for WooCommerce icon 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
  42. Extrova icon ExtrovaFewer than 10 installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) src/Pricing/TaxHelper.php:40
  43. Giftlight icon GiftlightFewer than 10 installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) giftlight.php:76
  44. iKetch Printing Cost Manager for WooCommerce icon iKetch Printing Cost Manager for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) includes/class-tax-preview.php:25
  45. The Yeti Dev Bookings Lite icon The Yeti Dev Bookings LiteFewer than 10 installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) includes/class-tydb-cart.php:1134
  46. HookSpark Dynamic Pricing & Discounts for WooCommerce icon HookSpark Dynamic Pricing & Discounts for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) src/class-simulationtax.php:109
  47. HaywoodTech Conditional Shipping for WooCommerce icon HaywoodTech Conditional Shipping for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) src/Simulator/CartBuilder.php:255
  48. MHM Rentiva icon MHM RentivaFewer than 10 installs apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) src/Admin/Booking/Pricing/PriceDisplay.php:135
  49. Beplus Fast Product Filter & Live Search for WooCommerce icon 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
  50. Revenue Booster for WooCommerce icon 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.