WordPress filter hook
woocommerce_get_price_including_tax
Defined by WooCommerce and fired by 15 plugins in total, running on 7M+ sites between them.
“To get price including tax”
How to use woocommerce_get_price_including_tax
It's a filter: your callback receives the value and 2 more arguments, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'woocommerce_get_price_including_tax', function( $return_price, $qty, $product ) {
// Change $return_price here.
return $return_price;
}, 10, 3 );Argument names come from WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
15 plugins that fire woocommerce_get_price_including_tax
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WooCommerce7+ million installs
apply_filters( 'woocommerce_get_price_including_tax', $return_price, $qty, $product )includes/wc-product-functions.php:1609 -
Event Booking Manager for WooCommerce6,000+ installs
apply_filters( 'woocommerce_get_price_including_tax', $return_price, $qty, $product )inc/mep_functions.php:3951 -
Dynamic Pricing With Discount Rules for WooCommerce5,000+ installs
apply_filters( 'woocommerce_get_price_including_tax', $return_price, $qty, $product )includes/discount/class-awdp-discount-utilities.php:324 -
ELEX WooCommerce Role Based Pricing2,000+ installs
apply_filters( 'woocommerce_get_price_including_tax', $return_price, $qty, $product )elex-includes/elex-functions.php:92 -
E-cab Taxi Booking Manager for Woocommerce2,000+ installs
apply_filters( 'woocommerce_get_price_including_tax', $return_price, $qty, $product )mp_global/class/MP_Global_Function.php:500 -
Travelly1,000+ installs
apply_filters( 'woocommerce_get_price_including_tax', $return_price, $qty, $product )inc/TTBM_Global_Function.php:568 -
Zakeke Interactive Product Designer for WooCommerce1,000+ installs
apply_filters( 'woocommerce_get_price_including_tax', $return_price, $qty, $product )includes/zakeke-core-functions.php:914 -
Booking and Rental Manager for Bike1,000+ installs
apply_filters( 'woocommerce_get_price_including_tax', $return_price, $qty, $product )lib/classes/class-admin-menu.php:1088 -
ELEX WooCommerce Dynamic Pricing and Discounts700+ installs
apply_filters( 'woocommerce_get_price_including_tax', $return_price, $qty, $product )includes/elex-common-functions.php:264 -
FooSales700+ installs
apply_filters( 'woocommerce_get_price_including_tax', $return_price, $qty, $wc_product )admin/helpers/foosales-api-helper.php:347 -
Bus Ticket Booking with Seat Reservation700+ installs
apply_filters( 'woocommerce_get_price_including_tax', $return_price, $qty, $product )mp_global/class/WBTM_Global_Function.php:479 -
Appointment Booking Plugin for WooCommerce200+ installs
apply_filters( 'woocommerce_get_price_including_tax', $return_price, $qty, $product )mp_global/class/MPWPB_Global_Function.php:401 -
Multipurpose Ticket Booking Manager (Bus/Train/Ferry/Boat/Shuttle)60+ installs
apply_filters( 'woocommerce_get_price_including_tax', $return_price, $qty, $product )inc/clean/mage_helper.php:1018 -
Wow Extensions for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_get_price_including_tax', $return_price, $qty, $product )extensions/role-based-pricing/wow-includes/wow-functions.php:92 -
MagePeople Shuttle BookingFewer than 10 installs
apply_filters( 'woocommerce_get_price_including_tax', $return_price, $qty, $product )frontend/helpers/mpsb_helper.php:1371
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.