Automattic\WooCommerce\Internal\StockNotifications
Telemetry::collect_snapshot
Collect the stock notifications snapshot fields.
Метод класса: Telemetry{}
Хуков нет.
Возвращает
array<string, mixed>.
Использование
$result = Telemetry::collect_snapshot(): array;
Код Telemetry::collect_snapshot() Telemetry::collect snapshot WC 11.2.2
public static function collect_snapshot(): array {
return array(
'settings' => self::get_settings(),
'notifications' => self::get_notification_counts(),
);
}