WC_Emails::order_details()
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() WC Emails::order details code WC 9.4.2
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, ) ); } }