WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Automattic\WooCommerce\Blocks\Domain\Services\Email

CustomerNewAccount::__construct() public WC 1.0

Constructor.

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

Хуков нет.

Возвращает

Null. Ничего.

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

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

Код CustomerNewAccount::__construct() WC 4.7.0

<?php
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           = __( 'Customer "new account" emails are sent to the customer when a customer signs up via checkout or account blocks.', '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();
}