# clanbite_social_kit_toggle_reaction()

Toggle a reaction on any registered object type; global alias of `\Kernowdev\ClanbiteSocialKit\clanbite_social_kit_toggle_reaction()`.

```php
clanbite_social_kit_toggle_reaction( string $object_type, int $object_id, int $user_id, string $slug )
```

## Parameters

- `$object_type` (string) Registered object type.
- `$object_id` (int) Object ID.
- `$user_id` (int) Reacting user.
- `$slug` (string) Reaction type slug.

## Return

`array<string, mixed>|\WP_Error` New state or an error with an HTTP status.

## Changelog

| Version | Description |
| --- | --- |
| 1.6.2 | Introduced |
