Automattic\WooCommerce\Internal\PushNotifications\Services
NotificationStepLogger::log_notification_step
Records a notification-level step.
Метод класса: NotificationStepLogger{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$NotificationStepLogger = new NotificationStepLogger(); $NotificationStepLogger->log_notification_step( $notification, $step, $outcome, $context ): void;
- $notification(Notification) (обязательный)
- The notification the step belongs to.
- $step(строка) (обязательный)
- Machine-readable step name, e.g.
recipients. - $outcome(строка) (обязательный)
- Machine-readable outcome, e.g.
okorno_tokens. - $context(массив)
- Extra scalar fields to store with the line.
По умолчанию:array()
Список изменений
| С версии 11.3.0 | Введена. |
Код NotificationStepLogger::log_notification_step() NotificationStepLogger::log notification step WC 11.3.0
public function log_notification_step( Notification $notification, string $step, string $outcome, array $context = array() ): void {
$this->write( $notification, $step, $outcome, $context );
}