Automattic\WooCommerce\Internal\CustomerEmailVerification\Emails

CustomerVerifyEmail::__construct │ public │ WC 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.2.1

public function __construct() {
	$this->id              = 'customer_verify_email';
	$this->customer_email  = true;
	$this->supports_cc_bcc = false;
	$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();
}