# Data_Access::toggle_reaction()

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

```php
toggle_reaction( int $post_id, int $user_id, string $reaction_type ): array
```

## Parameters

- `$post_id` (int) Post ID.
- `$user_id` (int) User ID.
- `$reaction_type` (string) Sanitized slug.

## Return

`array<string, mixed>`
