Automattic\WooCommerce\Internal\StockNotifications\Frontend

NotificationManagementService::initpublicWC 1.0

Init the service.

Method of the class: NotificationManagementService{}

No Hooks.

Returns

null. Nothing (null).

Usage

$NotificationManagementService = new NotificationManagementService();
$NotificationManagementService->init( $email_manager ): void;
$email_manager(EmailManager) (required)
The email manager.

NotificationManagementService::init() code WC 10.9.4

final public function init( EmailManager $email_manager ): void {
	$this->email_manager = $email_manager;

	add_action( 'template_redirect', array( $this, 'maybe_process_resend_request' ) );
}