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
$package
Reference to the Package instance
private
Package
$package
Methods
__construct()
Constructor.
public
__construct(Package $package) : mixed
Parameters
- $package : Package
-
An instance of (Woo Blocks) Package.
Return values
mixed —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 —init()
Init - register handlers for WooCommerce core email hooks.
public
init() : mixed