Automattic\WooCommerce\Internal\Admin\Notes

EmailNotification::__construct()publicWC 1.0

Constructor.

Метод класса: EmailNotification{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$EmailNotification = new EmailNotification();
$EmailNotification->__construct( $note );
$note(Note) (обязательный)
The notification to send.

Код EmailNotification::__construct() WC 8.7.0

public function __construct( $note ) {
	$this->note          = $note;
	$this->id            = 'merchant_notification';
	$this->template_base = WC_ADMIN_ABSPATH . 'includes/react-admin/emails/';
	$this->placeholders  = array(
		'{greetings}' => __( 'Hi there,', 'woocommerce' ),
	);

	// Call parent constructor.
	parent::__construct();
}