Automattic\WooCommerce\Internal\Admin\Notes
EmailNotification::__construct()
Constructor.
Method of the class: EmailNotification{}
No Hooks.
Return
null
. Nothing (null).
Usage
$EmailNotification = new EmailNotification(); $EmailNotification->__construct( $note );
- $note(Note) (required)
- The notification to send.
EmailNotification::__construct() EmailNotification:: construct code WC 9.6.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(); }