Clanbite Forums

clanbite_forums_prepare_block_render( string $board_template, array $attributes, ?WP_Block $block ): array<string, mixed>

Build query context, SSR state, and wrapper attributes for a forums block.

Interactivity context includes viewerCanOpenModQueue (same boolean as template var viewer_can_open_mod_queue), aligned with \Kernowdev\ClanbiteForums\Rest\Permissions::user_can_access_moderation_queue().

Namespace: Kernowdev\ClanbiteForums

Parameters

$board_template (string) Required

One of forums-index, forum-topics, forum-topic.

$attributes (array<string, mixed>) Required

Block attributes.

$block (WP_Block|null) Required

Block instance.

Returns

array<string, mixed> Variables for clanbite_forums_include_block_markup().

Defined in inc/forums-block-render.php