Clanbite Forums

resolve_report_target( string $target_type, int $target_id ): array{forum_id: int, topic_id: int, post_author_id: int, forum_slug: string, topic_slug: string, topic_title: string, excerpt: string}|\WP_Error

Resolve forum/topic context for a report target.

public static

Class: Kernowdev\ClanbiteForums\Forums\Moderation

Parameters

$target_type (string) Required

topic or reply.

$target_id (int) Required

Topic or reply ID.

Returns

array{forum_id: int, topic_id: int, post_author_id: int, forum_slug: string, topic_slug: string, topic_title: string, excerpt: string}|\WP_Error

Defined in inc/Forums/Moderation.php