WordPress at Your Fingertips
function is not described

WC_Abstract_Order::add_order_item_totals_total_row() protected WC 1.0

Add total row for grand total.

{} It's a method of the class: WC_Abstract_Order{}

No Hooks.


null. Nothing.


// protected - for code of main (parent) or child class
$result = $this->add_order_item_totals_total_row( $total_rows, $tax_display );
$total_rows(array) (required) (passed by reference — &)
Reference to total rows array.
$tax_display(string) (required)
Excl or incl tax display mode.

Code of WC_Abstract_Order::add_order_item_totals_total_row() WC 5.8.0

protected function add_order_item_totals_total_row( &$total_rows, $tax_display ) {
	$total_rows['order_total'] = array(
		'label' => __( 'Total:', 'woocommerce' ),
		'value' => $this->get_formatted_order_total( $tax_display ),