WC_Email_Customer_Fulfillment_Deleted::__construct
Constructor.
Method of the class: WC_Email_Customer_Fulfillment_Deleted{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Email_Customer_Fulfillment_Deleted = new WC_Email_Customer_Fulfillment_Deleted(); $WC_Email_Customer_Fulfillment_Deleted->__construct();
WC_Email_Customer_Fulfillment_Deleted::__construct() WC Email Customer Fulfillment Deleted:: construct code WC 10.7.0
public function __construct() {
$this->id = 'customer_fulfillment_deleted';
$this->customer_email = true;
$this->title = __( 'Fulfillment deleted', 'woocommerce' );
$this->email_group = 'order-updates';
$this->template_html = 'emails/customer-fulfillment-deleted.php';
$this->template_plain = 'emails/plain/customer-fulfillment-deleted.php';
$this->placeholders = array(
'{order_date}' => '',
'{order_number}' => '',
);
// Triggers for this email.
add_action( 'woocommerce_fulfillment_deleted_notification', array( $this, 'trigger' ), 10, 3 );
// Call parent constructor.
parent::__construct();
$this->description = __( 'Fulfillment deleted emails are sent to the customer when the merchant cancels an already fulfilled fulfillment. The notification isn’t sent for draft fulfillments.', 'woocommerce' );
$this->template_block_content = 'emails/block/general-block-content-for-fulfillment-emails.php';
}