Automattic\WooCommerce\Internal\CustomerEmailVerification\Emails

CustomerVerifyEmail::__constructpublicWC 1.0

Constructor.

Method of the class: CustomerVerifyEmail{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

CustomerVerifyEmail::__construct() code WC 11.0.1

public function __construct() {
	$this->id             = 'customer_verify_email';
	$this->customer_email = true;
	$this->title          = __( 'Confirm email address', 'woocommerce' );
	$this->description    = __( 'Sent to customers with a link to confirm they own their account email address.', 'woocommerce' );
	$this->template_html  = 'emails/customer-verify-email.php';
	$this->template_plain = 'emails/plain/customer-verify-email.php';
	$this->email_group    = 'accounts';

	// Trigger.
	add_action( 'woocommerce_customer_verify_email_notification', array( $this, 'trigger' ), 10, 2 );

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