Automattic\WooCommerce\Internal\StockNotifications\Emails
EmailActionController::get_notification_to_be_processed
Retrieves the notification to be processed based on the provided notification ID.
Метод класса: EmailActionController{}
Хуков нет.
Возвращает
Notification|null. The notification object if found, null otherwise.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_notification_to_be_processed( $notification_id ): ?Notification;
- $notification_id(int) (обязательный)
- The ID of the notification to process.
Код EmailActionController::get_notification_to_be_processed() EmailActionController::get notification to be processed WC 11.2.2
private function get_notification_to_be_processed( int $notification_id ): ?Notification {
$notification = Factory::get_notification( (int) $notification_id );
return $notification instanceof Notification ? $notification : null;
}