WC_Abstract_Order::get_line_tax()
Get line tax - useful for gateways.
Method of the class: WC_Abstract_Order{}
Hooks from the method
Return
float
.
Usage
$WC_Abstract_Order = new WC_Abstract_Order(); $WC_Abstract_Order->get_line_tax( $item );
- $item(mixed) (required)
- Item to get total from.
WC_Abstract_Order::get_line_tax() WC Abstract Order::get line tax code WC 9.8.2
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 ); }