WC_Email_Customer_New_Account::__construct
Constructor.
Method of the class: WC_Email_Customer_New_Account{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Email_Customer_New_Account = new WC_Email_Customer_New_Account(); $WC_Email_Customer_New_Account->__construct();
WC_Email_Customer_New_Account::__construct() WC Email Customer New Account:: construct code WC 10.7.0
public function __construct() {
$this->id = 'customer_new_account';
$this->customer_email = true;
$this->title = __( 'New account', 'woocommerce' );
$this->email_group = 'accounts';
$this->description = __( 'Send an email to customers notifying them that they have created an account', 'woocommerce' );
$this->template_html = 'emails/customer-new-account.php';
$this->template_plain = 'emails/plain/customer-new-account.php';
parent::__construct();
// Must be after parent's constructor which sets `block_email_editor_enabled` property.
if ( $this->block_email_editor_enabled ) {
$this->title = __( 'Account created', 'woocommerce' );
$this->description = __( 'Notifies customers when their account has been created.', 'woocommerce' );
}
}