WC_Emails::order_details( WC_Order $order, bool $sent_to_admin = false, bool $plain_text = false, string $email = '' )

Show the order details table


Description Description


Parameters Parameters

$order

(Required) Order instance.

$sent_to_admin

(Optional) If should sent to admin.

Default value: false

$plain_text

(Optional) If is plain text email.

Default value: false

$email

(Optional) Email address.

Default value: ''


Top ↑

Source Source

File: includes/class-wc-emails.php

	public function order_details( $order, $sent_to_admin = false, $plain_text = false, $email = '' ) {
		if ( $plain_text ) {
			wc_get_template(
				'emails/plain/email-order-details.php',
				array(
					'order'         => $order,
					'sent_to_admin' => $sent_to_admin,
					'plain_text'    => $plain_text,
					'email'         => $email,
				)
			);
		} else {
			wc_get_template(
				'emails/email-order-details.php',
				array(
					'order'         => $order,
					'sent_to_admin' => $sent_to_admin,
					'plain_text'    => $plain_text,
					'email'         => $email,
				)
			);
		}
	}


Top ↑

User Contributed Notes User Contributed Notes

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