WordPress at Your Fingertips
function is not described

WC_Emails::order_details() public WC 1.0

Show the order details table

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

No Hooks.

Return

null. Nothing.

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: ''

Code of WC_Emails::order_details() WC 5.7.1

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