Clanbite Social Kit

render_friendship_activity_card( string $html, object $row, ?array $team_payload, ?array $target_user, int $viewer_id = 0, bool $is_home_feed = false, ?array $author = null ): string

Render friendship activity card HTML.

public

Class: Kernowdev\ClanbiteSocialKit\Extension\Social_Kit

Parameters

$html (string) Required

Default HTML.

$row (object) Required

Database row.

$team_payload (array|null) Required

Team data.

$target_user (array|null) Required

Target user data.

$viewer_id (int) Optional

Current viewer user ID.

Default: 0

$is_home_feed (bool) Optional

True when rendering the merged home feed.

Default: false

$author (array|null) Optional

Author payload (lower user id on canonical friendship row).

Default: null

Returns

string

Defined in inc/Extension/Social_Kit.php