WC_Email_Order_Withdrawal_Requested::__construct
Constructor.
Method of the class: WC_Email_Order_Withdrawal_Requested{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Email_Order_Withdrawal_Requested = new WC_Email_Order_Withdrawal_Requested(); $WC_Email_Order_Withdrawal_Requested->__construct();
WC_Email_Order_Withdrawal_Requested::__construct() WC Email Order Withdrawal Requested:: construct code WC 11.2.1
public function __construct() {
$this->id = 'order_withdrawal_requested';
$this->title = __( 'Order withdrawal request', 'woocommerce' );
$this->description = __( 'Sent to chosen recipients when a customer submits an order withdrawal request.', 'woocommerce' );
$this->email_group = 'orders';
$this->template_html = 'emails/admin-order-withdrawal-requested.php';
$this->template_plain = 'emails/plain/admin-order-withdrawal-requested.php';
$this->placeholders = array(
'{order_number}' => '',
'{order_billing_name}' => '',
);
$this->formatter = new OrderWithdrawalEmailDataFormatter();
parent::__construct();
$this->recipient = $this->get_option( 'recipient', get_option( 'admin_email' ) );
}