WC_Abstract_Order::add_order_item_totals_shipping_row( array $total_rows, string $tax_display )
Add total row for shipping.
Description Description
Parameters Parameters
- $total_rows
-
(Required) Reference to total rows array.
- $tax_display
-
(Required) Excl or incl tax display mode.
Source Source
File: includes/abstracts/abstract-wc-order.php
protected function add_order_item_totals_shipping_row( &$total_rows, $tax_display ) {
if ( $this->get_shipping_method() ) {
$total_rows['shipping'] = array(
'label' => __( 'Shipping:', 'woocommerce' ),
'value' => $this->get_shipping_to_display( $tax_display ),
);
}
}