WC_Emails::customer_new_account( int $customer_id, array $new_customer_data = array(), bool $password_generated = false )
Customer new account welcome email.
Description Description
Parameters Parameters
- $customer_id
-
(Required) Customer ID.
- $new_customer_data
-
(Optional) New customer data.
Default value: array()
- $password_generated
-
(Optional) If password is generated.
Default value: false
Source Source
File: includes/class-wc-emails.php
public function customer_new_account( $customer_id, $new_customer_data = array(), $password_generated = false ) { if ( ! $customer_id ) { return; } $user_pass = ! empty( $new_customer_data['user_pass'] ) ? $new_customer_data['user_pass'] : ''; $email = $this->emails['WC_Email_Customer_New_Account']; $email->trigger( $customer_id, $user_pass, $password_generated ); }