WC_Email_Customer_Completed_Order::__construct()
Constructor.
Метод класса: WC_Email_Customer_Completed_Order{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WC_Email_Customer_Completed_Order = new WC_Email_Customer_Completed_Order(); $WC_Email_Customer_Completed_Order->__construct();
Код WC_Email_Customer_Completed_Order::__construct() WC Email Customer Completed Order:: construct WC 8.7.0
public function __construct() { $this->id = 'customer_completed_order'; $this->customer_email = true; $this->title = __( 'Completed order', 'woocommerce' ); $this->description = __( 'Order complete emails are sent to customers when their orders are marked completed and usually indicate that their orders have been shipped.', 'woocommerce' ); $this->template_html = 'emails/customer-completed-order.php'; $this->template_plain = 'emails/plain/customer-completed-order.php'; $this->placeholders = array( '{order_date}' => '', '{order_number}' => '', ); // Triggers for this email. add_action( 'woocommerce_order_status_completed_notification', array( $this, 'trigger' ), 10, 2 ); // Call parent constructor. parent::__construct(); }