# Messages_Settings::export_rest_schema_for_groups()

REST schema (sections and fields) for some message groups only.

Each extension tab shows the groups that belong to it as its Messages sub-tab.

```php
export_rest_schema_for_groups( array $groups ): array
```

## Parameters

- `$groups` (array<int, string>) Group slugs.

## Return

`array<int, array<string, mixed>>` Same shape as `Abstract_Settings::export_rest_schema()`.

## Changelog

| Version | Description |
| --- | --- |
| 1.5.0 | Introduced |
