WC_Email_Customer_New_Account::__constructpublicWC 1.0

Constructor.

Метод класса: WC_Email_Customer_New_Account{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WC_Email_Customer_New_Account = new WC_Email_Customer_New_Account();
$WC_Email_Customer_New_Account->__construct();

Код WC_Email_Customer_New_Account::__construct() 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' );
	}
}