Automattic\WooCommerce\Internal\StockNotifications\Frontend
SignupService::init
Init the service.
Метод класса: SignupService{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$SignupService = new SignupService(); $SignupService->init( $eligibility_service, $notification_management_service, $email_manager );
- $eligibility_service(EligibilityService) (обязательный)
- The eligibility service.
- $notification_management_service(NotificationManagementService) (обязательный)
- The notification management service.
- $email_manager(EmailManager) (обязательный)
- The email manager.
Код SignupService::init() SignupService::init WC 11.2.2
final public function init(
EligibilityService $eligibility_service,
NotificationManagementService $notification_management_service,
EmailManager $email_manager
) {
$this->eligibility_service = $eligibility_service;
$this->notification_management_service = $notification_management_service;
$this->email_manager = $email_manager;
$this->logger = \wc_get_logger();
}