WC_Email_Customer_Invoice::__construct
Constructor.
Метод класса: WC_Email_Customer_Invoice{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WC_Email_Customer_Invoice = new WC_Email_Customer_Invoice(); $WC_Email_Customer_Invoice->__construct();
Код WC_Email_Customer_Invoice::__construct() WC Email Customer Invoice:: construct WC 10.5.2
public function __construct() {
$this->id = 'customer_invoice';
$this->customer_email = true;
$this->title = __( 'Order details', 'woocommerce' );
$this->email_group = 'payments';
$this->template_html = 'emails/customer-invoice.php';
$this->template_plain = 'emails/plain/customer-invoice.php';
$this->placeholders = array(
'{order_date}' => '',
'{order_number}' => '',
);
// Call parent constructor.
parent::__construct();
// Must be after parent's constructor which sets `email_improvements_enabled` property.
$this->description = $this->email_improvements_enabled
? __( 'Manually send an email to your customers containing their order information and payment links', 'woocommerce' )
: __( 'Order detail emails can be sent to customers containing their order information and payment links.', 'woocommerce' );
$this->manual = true;
if ( $this->block_email_editor_enabled ) {
$this->title = __( 'Payment request', 'woocommerce' );
$this->description = __( 'Manually send customers an email to review their order and complete payment.', 'woocommerce' );
}
}