WordPress at Your Fingertips
function is not described

WC_Emails::customer_invoice() public WC 1.0

Prepare and send the customer invoice email on demand.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Emails = new WC_Emails();
$WC_Emails->customer_invoice( $order );
$order(int|WC_Order) (required)
Order instance or ID.

Code of WC_Emails::customer_invoice() WC 5.7.1

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