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.


Top ↑

Source Source

File: includes/class-wc-emails.php

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


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.