WC_Order::add_order_item_totals_payment_method_row( array $total_rows, string $tax_display )

Add total row for the payment method.


Description Description


Parameters Parameters

$total_rows

(Required) Total rows.

$tax_display

(Required) Tax to display.


Top ↑

Source Source

File: includes/class-wc-order.php

	protected function add_order_item_totals_payment_method_row( &$total_rows, $tax_display ) {
		if ( $this->get_total() > 0 && $this->get_payment_method_title() && 'other' !== $this->get_payment_method_title() ) {
			$total_rows['payment_method'] = array(
				'label' => __( 'Payment method:', 'woocommerce' ),
				'value' => $this->get_payment_method_title(),
			);
		}
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.