Automattic\WooCommerce\Internal\PushNotifications\Services

StepLogQuery::get_failure_key │ private static │ WC 1.0

Names the notification, step and outcome a row records.

Метод класса: StepLogQuery{}

Хуков нет.

Возвращает

string|null. Null for a row that names no notification, such as a batch line.

Использование

$result = StepLogQuery::get_failure_key( $row ): ?string;
$row(массив) (обязательный)
The row.

Код StepLogQuery::get_failure_key() WC 11.3.0

private static function get_failure_key( array $row ): ?string {
	$context = $row['context'] ?? array();

	return isset( $context['identifier'], $context['step'], $context['outcome'] )
		? $context['identifier'] . '|' . $context['step'] . '|' . $context['outcome']
		: null;
}