Automattic\WooCommerce\Internal\PushNotifications\Services
StepLogQuery::get_order_within_a_second
Where a line sits among the lines sharing its second.
Timestamps are whole seconds, and the request that dispatches a notification and the loopback request that processes it run at the same time in separate processes, so neither the timestamp nor the order the lines were written tells a reader which step came first. Ordering ties by the lifecycle the steps run in does.
A step this does not name sorts to the end of its second.
Метод класса: StepLogQuery{}
Хуков нет.
Возвращает
int.
Использование
$result = StepLogQuery::get_order_within_a_second( $row ): int;
- $row(массив) (обязательный)
- The row.
Код StepLogQuery::get_order_within_a_second() StepLogQuery::get order within a second WC 11.3.0
private static function get_order_within_a_second( array $row ): int {
return self::STEP_ORDER[ $row['context']['step'] ?? '' ] ?? 0;
}