WC_Emails::order_details()publicWC 1.0

Show the order details table

Method of the class: WC_Emails{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Emails = new WC_Emails();
$WC_Emails->order_details( $order, $sent_to_admin, $plain_text, $email );
$order(WC_Order) (required)
Order instance.
$sent_to_admin(true|false)
If should sent to admin.
Default: false
$plain_text(true|false)
If is plain text email.
Default: false
$email(string)
Email address.
Default: ''

WC_Emails::order_details() code WC 8.7.0

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,
			)
		);
	}
}