Automattic\WooCommerce\Internal\Admin\Notes

EmailNotification::__construct()publicWC 1.0

Constructor.

Method of the class: EmailNotification{}

No Hooks.

Return

null. Nothing.

Usage

$EmailNotification = new EmailNotification();
$EmailNotification->__construct( $note );
$note(Note) (required)
The notification to send.

EmailNotification::__construct() code WC 7.1.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();
}