woocommerce_order_shipping_to_display_tax_label

The WooCommerce woocommerce order shipping to display tax label hook.

Description

apply_filters( 'woocommerce_order_shipping_to_display_tax_label', (string) $nbsp_small_class_tax_label_wc_countries_ex_tax_or_vat_small, (unknown) $instance, (unknown) $tax_display ); 

Parameters (3)

0. $nbsp_small_class_tax_label_wc_countries_ex_tax_or_vat_small — Optional. (string) => ' . WC()->countries->ex_tax_or_vat() . ''
The nbsp small class tax label wc countries ex tax or vat small.
1. $instance (unknown)
The instance.
2. $tax_display (unknown)
The tax display.

Usage

To run the hook, copy the example below.
  1. $nbsp_small_class_tax_label_wc_countries_ex_tax_or_vat_small = apply_filters( 'woocommerce_order_shipping_to_display_tax_label', $nbsp_small_class_tax_label_wc_countries_ex_tax_or_vat_small, $instance, $tax_display ); 
  2.  
  3. if ( !empty( $nbsp_small_class_tax_label_wc_countries_ex_tax_or_vat_small ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the woocommerce_order_shipping_to_display_tax_label callback 
  2. function filter_woocommerce_order_shipping_to_display_tax_label( $nbsp_small_class_tax_label_wc_countries_ex_tax_or_vat_small, $instance, $tax_display ) { 
  3. // make filter magic happen here... 
  4. return $nbsp_small_class_tax_label_wc_countries_ex_tax_or_vat_small
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'woocommerce_order_shipping_to_display_tax_label', 'filter_woocommerce_order_shipping_to_display_tax_label', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'woocommerce_order_shipping_to_display_tax_label', 'filter_woocommerce_order_shipping_to_display_tax_label', 10, 3 ); 

Defined (2)

The filter is defined in the following location(s).

/includes/abstracts/abstract-wc-order.php  
  1. $shipping .= apply_filters( 'woocommerce_order_shipping_to_display_tax_label', ' <small class="tax_label">' . WC()->countries->ex_tax_or_vat() . '</small>', $this, $tax_display ); 
  1. $shipping .= apply_filters( 'woocommerce_order_shipping_to_display_tax_label', ' <small class="tax_label">' . WC()->countries->inc_tax_or_vat() . '</small>', $this, $tax_display );