CreateAccount::customer_new_account()publicWC 1.0

Trigger new account email. 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.

{} Это метод класса: CreateAccount{}

Хуков нет.


null. Ничего.


$CreateAccount = new CreateAccount();
$CreateAccount->customer_new_account( $customer_id, $new_customer_data );
The ID of the new customer account.
Assoc array of data for the new account.
По умолчанию: array()

Код CreateAccount::customer_new_account() WC 6.9.4

public function customer_new_account( $customer_id = 0, array $new_customer_data = array() ) {
	$new_account_email = new CustomerNewAccount( $this->package );
	$new_account_email->trigger( $customer_id, $new_customer_data );