# Companion_Hooks::on_post_reaction_toggled()

Award points for reacting to a post (and to the author who received a reaction).

```php
on_post_reaction_toggled( $post_id, $user_id, $reaction_type, $active ): void
```

## Parameters

- `$post_id` (int) Post ID.
- `$user_id` (int) Reactor.
- `$reaction_type` (string) Slug.
- `$active` (bool) Now active.

## Return

`void` 

## Changelog

| Version | Description |
| --- | --- |
| 1.2.1 | Updated |
