Clanbite Social Kit

toggle_comment_reaction( int $comment_id, int $user_id, string $reaction_type ): array<string, mixed>

Toggle one reaction on a comment (insert/remove row).

public static

Class: Kernowdev\ClanbiteSocialKit\Social\Data_Access

Parameters

$comment_id (int) Required

Comment PK.

$user_id (int) Required

User ID.

$reaction_type (string) Required

Sanitized slug.

Returns

array<string, mixed>

Defined in inc/Social/Data_Access.php