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.8.1

apply_filters('woocommerce_order_shipping_to_display_tax_label') is found 2 times:

  • /includes/abstracts/abstract-wc-order.php line 2248
    2244
    2245
    2246
    2247
    2248
    2249
    2250
    2251
    2252
    2253
        // 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 2256
    2252
    2253
    2254
    2255
    2256
    2257
    2258
    2259
    2260
    2261
        // 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 );