Automattic\WooCommerce\Internal\StockNotifications

Telemetry::collect_snapshot │ public static │ WC 1.0

Collect the stock notifications snapshot fields.

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

Хуков нет.

Возвращает

array<string, mixed>.

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

$result = Telemetry::collect_snapshot(): array;

Код Telemetry::collect_snapshot() WC 11.2.2

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