# Companion_Hooks::on_social_post_deleted()

Take back everything a deleted social post earned: the post itself, its poll and photo bonus, votes, comments and the reactions on it and on its comments.

```php
on_social_post_deleted( $post_id, $row ): void
```

## Parameters

- `$post_id` (int) Post ID.
- `$row` (object) Post row as it was before deletion.

## Return

`void` 

## Changelog

| Version | Description |
| --- | --- |
| 1.4.0 | Introduced |
