woocommerce_order_amount_line_tax

woocommerce_order_amount_line_tax

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_order_amount_line_tax') is found 1 times:

  • /includes/abstracts/abstract-wc-order.php line 2141
    2137
    2138
    2139
    2140
    2141
    2142
    2143
    2144
    2145
    2146
    2147
    * @param mixed $item Item to get total from.
     * @return float
     */
    public function get_line_tax( $item ) {
        return apply_filters( 'woocommerce_order_amount_line_tax', is_callable( array( $item, 'get_total_tax' ) ) ? wc_round_tax_total( $item->get_total_tax() ) : 0, $item, $this );
    }
     
    /**
     * Gets line subtotal - formatted for display.
     *
     * @param object $item Item to get total from.