WooCommerce Code Reference

CreateAccount
in package

Service class implementing new create account emails used for order processing via the Block Based Checkout.

Table of Contents

$package  : Package
Reference to the Package instance
__construct()  : mixed
Constructor.
customer_new_account()  : mixed
Trigger new account email.
init()  : mixed
Init - register handlers for WooCommerce core email hooks.

Properties

Methods

customer_new_account()

Trigger new account email.

public customer_new_account(int $customer_id[, array<string|int, mixed> $new_customer_data = array() ]) : mixed

This is intended as a replacement to WC_Emails::customer_new_account(), with a set password link instead of emailing the new password in email content.

Parameters
$customer_id : int

The ID of the new customer account.

$new_customer_data : array<string|int, mixed> = array()

Assoc array of data for the new account.

Return values
mixed