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

WC_Email_Customer_New_Account::trigger() public WC 1.0

Trigger.

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

Хуков нет.

Возвращает

Null. Ничего.

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

$WC_Email_Customer_New_Account = new WC_Email_Customer_New_Account();
$WC_Email_Customer_New_Account->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

Код WC_Email_Customer_New_Account::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 );

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

	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->restore_locale();
}