WC_Emails::customer_invoice( int|WC_Order $order )
Prepare and send the customer invoice email on demand.
Description Description
Parameters Parameters
- $order
-
(Required) Order instance or ID.
Source Source
File: includes/class-wc-emails.php
367 368 369 370 371 372 373 374 375 | public function customer_invoice( $order ) { $email = $this ->emails[ 'WC_Email_Customer_Invoice' ]; if ( ! is_object ( $order ) ) { $order = wc_get_order( absint( $order ) ); } $email ->trigger( $order ->get_id(), $order ); } |