Clanbite Social Kit

toggle_reaction( int $post_id, int $user_id, string $reaction_type ): array<string, mixed>

Toggle one reaction type for a user (insert/remove row).

public static

Class: Kernowdev\ClanbiteSocialKit\Social\Data_Access

Parameters

$post_id (int) Required

Post ID.

$user_id (int) Required

User ID.

$reaction_type (string) Required

Sanitized slug.

Returns

array<string, mixed>

Defined in inc/Social/Data_Access.php