WC_Email_Customer_Failed_Order::__construct()
Constructor.
Method of the class: WC_Email_Customer_Failed_Order{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Email_Customer_Failed_Order = new WC_Email_Customer_Failed_Order(); $WC_Email_Customer_Failed_Order->__construct();
WC_Email_Customer_Failed_Order::__construct() WC Email Customer Failed Order:: construct code WC 9.5.1
public function __construct() { $this->id = 'customer_failed_order'; $this->customer_email = true; $this->title = __( 'Failed order', 'woocommerce' ); $this->description = __( 'Order failed emails are sent to customers when their orders are marked as failed.', 'woocommerce' ); $this->template_html = 'emails/customer-failed-order.php'; $this->template_plain = 'emails/plain/customer-failed-order.php'; $this->placeholders = array( '{order_date}' => '', '{order_number}' => '', ); // Triggers for this email. add_action( 'woocommerce_order_status_failed_notification', array( $this, 'trigger' ), 10, 2 ); // Call parent constructor. parent::__construct(); }