# Matches::match_to_rest_array()

Shape a match post for REST consumers and internal use.

```php
match_to_rest_array( WP_Post $post ): array
```

## Parameters

- `$post` (WP_Post) Match post object.

## Return

`array<string, mixed>`
