Automattic\WooCommerce\Internal\StockNotifications\Emails

CustomerStockNotificationEmail::__constructpublicWC 1.0

Constructor.

Method of the class: CustomerStockNotificationEmail{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

CustomerStockNotificationEmail::__construct() code WC 10.3.6

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

	$this->title       = __( 'Back in stock notification', 'woocommerce' );
	$this->description = __( 'Email sent to signed-up customers when a product is back in stock.', 'woocommerce' );

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

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