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

Automattic\WooCommerce\Blocks\Domain\Services\Email

CustomerNewAccount::trigger() public WC 1.0

Trigger.

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

Хуков нет.

Возвращает

Null. Ничего.

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

$CustomerNewAccount = new CustomerNewAccount();
$CustomerNewAccount->trigger( $user_id, $user_pass, $password_generated );
$user_id(число) (обязательный)
User ID.
$user_pass(строка)
User password.
По умолчанию: ''
$password_generated(true/false)
Whether the password was generated automatically or not.
По умолчанию: false

Код CustomerNewAccount::trigger() WC 4.7.1

<?php
public function trigger( $user_id, $user_pass = '', $password_generated = false ) {
	$this->setup_locale();

	if ( $user_id ) {
		$this->object = new \WP_User( $user_id );

		// Generate a magic link so user can set initial password.
		$key = get_password_reset_key( $this->object );
		if ( ! is_wp_error( $key ) ) {
			$this->set_password_url = network_site_url(
				"wp-login.php?action=rp&key=$key&login=" . rawurlencode( $this->object->user_login ),
				'login'
			);
		}

		$this->user_login = stripslashes( $this->object->user_login );
		$this->user_email = stripslashes( $this->object->user_email );
		$this->recipient  = $this->user_email;
	}

	if ( $this->is_enabled() && $this->get_recipient() ) {
		$this->send( $this->get_recipient(), $this->get_subject(), $this->get_content(), $this->get_headers(), $this->get_attachments(), $this->set_password_url );
	}

	$this->restore_locale();
}