Clanbite Forums

map_forum_last_post_snapshots( array $forum_ids ): array<int, object>

For each forum ID, load the topic with the latest activity (last_reply_at, tie-break id).

Used for board index “last post” columns. Keys are forum IDs; forums with no published topics are omitted.

public static

Class: Kernowdev\ClanbiteForums\Forums\Data_Access

Parameters

$forum_ids (list<int>) Required

Forum IDs.

Returns

array<int, object> Map forum_id => row with topic_id, topic_slug, topic_title, last_reply_at, last_reply_id, last_poster_author_id.

Defined in inc/Forums/Data_Access.php