Clanbite Forums

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{state: array<string, mixed>, context: array<string, mixed>, flags: array{topics_ssr: bool, topic_ssr: bool, forums_index_ssr: bool, topic_route_ssr: bool}}

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

Namespace: Kernowdev\ClanbiteForums

Parameters

$board_template (string) Required

forums-index, forum-topics, or forum-topic.

$initial_forum (string) Required

Sanitized forum slug.

$initial_topic (string) Required

Sanitized topic slug.

$reply_id (int) Required

Reply deep-link id (0 = full thread).

$topics_per_page (int) Required

Topics page size.

$replies_per_page (int) Required

Replies page size.

Returns

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}}

Defined in inc/forums-board-ssr.php