Automattic\WooCommerce\Blocks\Domain\Services

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 );
$customer_id(int)
The ID of the new customer account.
$new_customer_data(массив)
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 );
}