Automattic\WooCommerce\Blocks\Domain\Services\Email

CustomerNewAccount::__construct()publicWC 1.0

Constructor.

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

Хуков нет.

Возвращает

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

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

$CustomerNewAccount = new CustomerNewAccount();
$CustomerNewAccount->__construct( $package );
$package(Package) (обязательный)
An instance of (Woo Blocks) Package.

Код CustomerNewAccount::__construct() WC 8.7.0

public function __construct( Package $package ) {
	// Note - we're using the same ID as the real email.
	// This ensures that any merchant tweaks (Settings > Emails)
	// apply to this email (consistent with the core email).
	$this->id                    = 'customer_new_account';
	$this->customer_email        = true;
	$this->title                 = __( 'New account', 'woocommerce' );
	$this->description           = __( '“New Account” emails are sent when a customer signs up via the checkout flow.', 'woocommerce' );
	$this->template_html         = 'emails/customer-new-account-blocks.php';
	$this->template_plain        = 'emails/plain/customer-new-account-blocks.php';
	$this->default_template_path = $package->get_path( '/templates/' );

	// Call parent constructor.
	parent::__construct();
}