woocommerce_order_shipping_to_display_tax_label

woocommerce_order_shipping_to_display_tax_label

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_order_shipping_to_display_tax_label') is found 2 times:

  • /includes/abstracts/abstract-wc-order.php line 2227
    				// Show shipping excluding tax.
    				$shipping = wc_price( $this->get_shipping_total(), array( 'currency' => $this->get_currency() ) );
    
    				if ( (float) $this->get_shipping_tax() > 0 && $this->get_prices_include_tax() ) {
    					$shipping .= apply_filters( 'woocommerce_order_shipping_to_display_tax_label', '&nbsp;<small class="tax_label">' . WC()->countries->ex_tax_or_vat() . '</small>', $this, $tax_display );
    				}
    			} else {
    
    				// Show shipping including tax.
    				$shipping = wc_price( (float) $this->get_shipping_total() + (float) $this->get_shipping_tax(), array( 'currency' => $this->get_currency() ) );
    
    
  • /includes/abstracts/abstract-wc-order.php line 2235
    				// Show shipping including tax.
    				$shipping = wc_price( (float) $this->get_shipping_total() + (float) $this->get_shipping_tax(), array( 'currency' => $this->get_currency() ) );
    
    				if ( (float) $this->get_shipping_tax() > 0 && ! $this->get_prices_include_tax() ) {
    					$shipping .= apply_filters( 'woocommerce_order_shipping_to_display_tax_label', '&nbsp;<small class="tax_label">' . WC()->countries->inc_tax_or_vat() . '</small>', $this, $tax_display );
    				}
    			}
    
    			/* translators: %s: method */
    			$shipping .= apply_filters( 'woocommerce_order_shipping_to_display_shipped_via', '&nbsp;<small class="shipped_via">' . sprintf( __( 'via %s', 'woocommerce' ), $this->get_shipping_method() ) . '</small>', $this );