Automattic\WooCommerce\Internal\OrderWithdrawal

OrderWithdrawalFormProcessor::send_customer_order_withdrawal_email │ private │ WC 1.0

Send the customer order withdrawal acknowledgement email.

Method of the class: OrderWithdrawalFormProcessor{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->send_customer_order_withdrawal_email( $data, $submitted_at ): bool;
$data(array<string,string>) (required)
Form data.
$submitted_at(int) (required)
Unix timestamp for the submission.

OrderWithdrawalFormProcessor::send_customer_order_withdrawal_email() code WC 11.1.2

private function send_customer_order_withdrawal_email( array $data, int $submitted_at ): bool {
	$subject = __( 'We received your withdrawal request', 'woocommerce' );
	$heading = __( 'We received your withdrawal request', 'woocommerce' );
	$body    = '<p>' . esc_html__( 'We have received your request to withdraw from the order below.', 'woocommerce' ) . '</p>';
	$body   .= $this->get_email_details_html( $data, $submitted_at );
	$body   .= '<p>' . esc_html__( 'We will review your request and contact you about next steps, including any refund due.', 'woocommerce' ) . '</p>';

	return wc_mail(
		$data[ self::FIELD_EMAIL ],
		$subject,
		$this->wrap_email_message( $heading, $body )
	);
}