WooCommerce Code Reference

CreateAccount
in package

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

Tags
deprecated

This class can't be removed due to https://github.com/woocommerce/woocommerce/issues/52311.

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
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