WC_Email_Customer_POS_Refunded_Order::__constructpublicWC 1.0

Constructor.

Метод класса: WC_Email_Customer_POS_Refunded_Order{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$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 10.0.2

public function __construct() {
	$this->customer_email = true;
	$this->id             = 'customer_pos_refunded_order';
	$this->title          = __( 'POS refunded order', 'woocommerce' );
	$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}' => '',
	);

	// 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->disable_default_refund_emails_for_pos_orders();
	$this->register_refund_email_triggers();
}