Automattic\WooCommerce\Internal\Admin\Orders

ListTable::render_order_total_column()publicWC 1.0

Renders the order total.

Method of the class: ListTable{}

No Hooks.

Return

null. Nothing.

Usage

$ListTable = new ListTable();
$ListTable->render_order_total_column( $order ): void;
$order(WC_Order) (required)
The order object for the current row.

ListTable::render_order_total_column() code WC 7.1.0

public function render_order_total_column( WC_Order $order ): void {
	if ( $order->get_payment_method_title() ) {
		/* translators: %s: method */
		echo '<span class="tips" data-tip="' . esc_attr( sprintf( __( 'via %s', 'woocommerce' ), $order->get_payment_method_title() ) ) . '">' . wp_kses_post( $order->get_formatted_order_total() ) . '</span>';
	} else {
		echo wp_kses_post( $order->get_formatted_order_total() );
	}
}