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