Automattic\WooCommerce\Internal\StockNotifications

Telemetry::collect_snapshot │ public static │ WC 1.0

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() code WC 11.3.0

public static function collect_snapshot(): array {
	return array(
		'settings'      => self::get_settings(),
		'notifications' => self::get_notification_counts(),
	);
}