WordPress filter hook

woocommerce_order_shipping_to_display_tax_label

Defined by WooCommerce and fired by 5 plugins in total, running on 7.1M+ sites between them.

“Hook to add tax label to pickup cost.”

How to use woocommerce_order_shipping_to_display_tax_label

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:

functions.php
add_filter( 'woocommerce_order_shipping_to_display_tax_label', function( $value, $order, $tax_display ) {
	// Change $value here.
	return $value;
}, 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.

5 plugins that fire woocommerce_order_shipping_to_display_tax_label

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_order_shipping_to_display_tax_label', ' <small class="tax_label">' . WC()->countries->ex_tax_or_vat() . '</small>', $order, $tax_display ) src/Blocks/Shipping/ShippingController.php:152
  2. WebToffee WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels icon WebToffee WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels50,000+ installs apply_filters( 'woocommerce_order_shipping_to_display_tax_label', ' <small class="tax_label">' . WC()->countries->ex_tax_or_vat() . '</small>', $order, $tax_display ) admin/class-wf-woocommerce-packing-list-admin.php:2421
  3. YayCurrency icon YayCurrency7,000+ installs apply_filters( 'woocommerce_order_shipping_to_display_tax_label', ' <small class="tax_label">' . WC()->countries->ex_tax_or_vat() . '</small>', $order, $tax_display ) includes/Engine/FEPages/WooCommerceCurrency.php:1010
  4. Payment Gateway Currency for WooCommerce icon Payment Gateway Currency for WooCommerce300+ installs apply_filters( 'woocommerce_order_shipping_to_display_tax_label', ' <small class="tax_label">' . WC()->countries->ex_tax_or_vat() . '</small>', $order, $tax_display ) includes/class-alg-wc-pgbc-convert-info-frontend.php:206
  5. Cryptocurrency Product for WooCommerce icon Cryptocurrency Product for WooCommerce10+ installs apply_filters( 'woocommerce_order_shipping_to_display_tax_label', ' <small class="tax_label">' . WC()->countries->ex_tax_or_vat() . '</small>', $order, $tax_display ) cryptocurrency-product-for-woocommerce.php:1595

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.