# Data_Access::toggle_comment_reaction()

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

```php
toggle_comment_reaction( int $comment_id, int $user_id, string $reaction_type ): array
```

## Parameters

- `$comment_id` (int) Comment PK.
- `$user_id` (int) User ID.
- `$reaction_type` (string) Sanitized slug.

## Return

`array<string, mixed>`
