# Data_Access::toggle_topic_reaction()

Toggle one reaction on a topic.

```php
toggle_topic_reaction( int $topic_id, int $user_id, string $reaction_type ): array
```

## Parameters

- `$topic_id` (int) Topic ID.
- `$user_id` (int) User ID.
- `$reaction_type` (string) Sanitized slug.

## Return

`array<string, mixed>`
