Automattic\WooCommerce\Internal\StockNotifications
Telemetry::collect_snapshot
Collect the stock notifications snapshot fields.
Method of the class: Telemetry{}
No Hooks.
Returns
array<string, mixed>.
Usage
$result = Telemetry::collect_snapshot(): array;
Telemetry::collect_snapshot() Telemetry::collect snapshot code WC 11.3.0
public static function collect_snapshot(): array {
return array(
'settings' => self::get_settings(),
'notifications' => self::get_notification_counts(),
);
}