WC_Email_Customer_Abandoned_Cart_Recovery::__construct
Constructor.
Method of the class: WC_Email_Customer_Abandoned_Cart_Recovery{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Email_Customer_Abandoned_Cart_Recovery = new WC_Email_Customer_Abandoned_Cart_Recovery(); $WC_Email_Customer_Abandoned_Cart_Recovery->__construct();
WC_Email_Customer_Abandoned_Cart_Recovery::__construct() WC Email Customer Abandoned Cart Recovery:: construct code WC 11.0.0
public function __construct() {
$this->id = self::EMAIL_ID;
$this->customer_email = true;
$this->title = __( 'Abandoned cart recovery', 'woocommerce' );
$this->email_group = 'order-updates';
$this->template_html = 'emails/customer-abandoned-cart-recovery.php';
$this->template_plain = 'emails/plain/customer-abandoned-cart-recovery.php';
$this->template_block = 'emails/block/customer-abandoned-cart-recovery.php';
$this->placeholders = array(
'{site_title}' => $this->get_blogname(),
'{site_address}' => wp_parse_url( home_url(), PHP_URL_HOST ),
'{order_date}' => '',
'{order_number}' => '',
);
parent::__construct();
// Must be after parent's constructor which sets `email_improvements_enabled` property.
$this->description = __( 'Win back shoppers who almost bought. Automatically email customers who didn\'t finish checking out, with a one-click link back to their order.', 'woocommerce' );
}