WC_Email_Customer_Fulfillment_Created::__construct
Constructor.
Метод класса: WC_Email_Customer_Fulfillment_Created{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WC_Email_Customer_Fulfillment_Created = new WC_Email_Customer_Fulfillment_Created(); $WC_Email_Customer_Fulfillment_Created->__construct();
Код WC_Email_Customer_Fulfillment_Created::__construct() WC Email Customer Fulfillment Created:: construct WC 10.3.4
public function __construct() {
$this->id = 'customer_fulfillment_created';
$this->customer_email = true;
$this->title = __( 'Fulfillment created', 'woocommerce' );
$this->email_group = 'order-processing';
$this->template_html = 'emails/customer-fulfillment-created.php';
$this->template_plain = 'emails/plain/customer-fulfillment-created.php';
$this->placeholders = array(
'{order_date}' => '',
'{order_number}' => '',
);
// Triggers for this email.
add_action( 'woocommerce_fulfillment_created_notification', array( $this, 'trigger' ), 10, 3 );
// Call parent constructor.
parent::__construct();
$this->description = __( 'Fulfillment created emails are sent to the customer when the merchant creates a fulfillment for the order, and marks it as fulfilled. The notification isn’t sent for draft fulfillments.', 'woocommerce' );
}