WC_Email_Customer_POS_Refunded_Order::__construct
Constructor.
Method of the class: WC_Email_Customer_POS_Refunded_Order{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Email_Customer_POS_Refunded_Order = new WC_Email_Customer_POS_Refunded_Order(); $WC_Email_Customer_POS_Refunded_Order->__construct();
WC_Email_Customer_POS_Refunded_Order::__construct() WC Email Customer POS Refunded Order:: construct code WC 10.8.1
public function __construct() {
$this->customer_email = true;
$this->id = 'customer_pos_refunded_order';
$this->title = __( 'POS refunded order', 'woocommerce' );
$this->email_group = 'payments';
$this->template_html = 'emails/customer-pos-refunded-order.php';
$this->template_plain = 'emails/plain/customer-pos-refunded-order.php';
$this->placeholders = array(
'{order_date}' => '',
'{order_number}' => '',
);
$this->enable_order_email_actions();
// 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 when a full or partial refund is on its way to them for their POS order.', 'woocommerce' )
: __( 'Order refunded emails are sent to customers when their POS orders are refunded.', 'woocommerce' );
$this->manual = true;
if ( $this->block_email_editor_enabled ) {
$this->title = __( 'POS order refunded', 'woocommerce' );
$this->description = __( 'Notifies customers when a full or partial refund has been issued for their in-person (POS) order.', 'woocommerce' );
}
}