# clanbite_forums_ssr_payload()

Build SSR store/context patches for a forums front block template.

```php
clanbite_forums_ssr_payload( string $board_template, string $initial_forum, string $initial_topic, int $reply_id, int $topics_per_page, int $replies_per_page ): array
```

## Parameters

- `$board_template` (string) `forums-index`, `forum-topics`, or `forum-topic`.
- `$initial_forum` (string) Sanitized forum slug.
- `$initial_topic` (string) Sanitized topic slug.
- `$reply_id` (int) Reply deep-link id (0 = full thread).
- `$topics_per_page` (int) Topics page size.
- `$replies_per_page` (int) Replies page size.

## Return

`array{state: array<string, mixed>, context: array<string, mixed>, flags: array{topics_ssr: bool, topic_ssr: bool, forums_index_ssr: bool, topic_route_ssr: bool}}`
