WC_Emails::customer_invoice()
Prepare and send the customer invoice email on demand.
Method of the class: WC_Emails{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Emails = new WC_Emails(); $WC_Emails->customer_invoice( $order );
- $order(int|WC_Order) (required)
- Order instance or ID.
WC_Emails::customer_invoice() WC Emails::customer invoice code WC 9.3.3
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 ); }