Automattic\WooCommerce\Internal\StockNotifications\Emails

CustomerStockNotificationVerifyEmail::__constructpublicWC 1.0

Constructor.

Method of the class: CustomerStockNotificationVerifyEmail{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

CustomerStockNotificationVerifyEmail::__construct() code WC 10.3.6

public function __construct() {
	$this->id             = 'customer_stock_notification_verify';
	$this->customer_email = true;

	$this->title       = __( 'Back in stock sign-up verification', 'woocommerce' );
	$this->description = __( 'Verification e-mail sent to customers, as part of the double opt-in sign-up process.', 'woocommerce' );

	$this->template_html  = 'emails/customer-stock-notification-verify.php';
	$this->template_plain = 'emails/plain/customer-stock-notification-verify.php';
	$this->placeholders   = array(
		'{product_name}' => '',
		'{site_title}'   => '',
	);

	add_action( 'woocommerce_email_stock_notification_verify_notification', array( $this, 'trigger' ), 10, 1 );

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