WC_Email_Customer_POS_Completed_Order::__construct
Constructor.
Method of the class: WC_Email_Customer_POS_Completed_Order{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Email_Customer_POS_Completed_Order = new WC_Email_Customer_POS_Completed_Order(); $WC_Email_Customer_POS_Completed_Order->__construct();
WC_Email_Customer_POS_Completed_Order::__construct() WC Email Customer POS Completed Order:: construct code WC 10.7.0
public function __construct() {
$this->id = 'customer_pos_completed_order';
$this->customer_email = true;
$this->title = __( 'POS completed order', 'woocommerce' );
$this->email_group = 'payments';
$this->template_html = 'emails/customer-pos-completed-order.php';
$this->template_plain = 'emails/plain/customer-pos-completed-order.php';
$this->placeholders = array(
'{order_date}' => '',
'{order_number}' => '',
);
$this->enable_order_email_actions_for_pos_orders();
// Call parent constructor.
parent::__construct();
// Must be after parent's constructor which sets `email_improvements_enabled` property.
$this->description = $this->email_improvements_enabled
? __( 'Let customers know once their POS order is complete.', 'woocommerce' )
: __( 'Order complete emails are sent to customers when their POS orders are marked completed.', 'woocommerce' );
$this->manual = true;
if ( $this->block_email_editor_enabled ) {
$this->title = __( 'POS order complete', 'woocommerce' );
$this->description = __( 'Notifies customers when their in-person (POS) order has been completed.', 'woocommerce' );
}
}