# clanbite_social_kit_insert_post_data

Filters the data stored for a new social post, just before it is inserted.

Lets a feed context adjust columns (for example `visibility`). To store your own association (the subject the post
belongs to), use the `clanbite_social_kit_post_created` action, which receives `feed_context` and
`feed_subject_id`, and read it back from your context's `query` callback.

```php
apply_filters( 'clanbite_social_kit_insert_post_data', array<string, mixed> $insert_data, array<string, mixed> $params, string $feed_context, int $feed_subject )
```

## Parameters

- `$insert_data` (array<string, mixed>) Columns for `Data_Access::insert_post()`.
- `$params` (array<string, mixed>) Decoded request body.
- `$feed_context` (string) Registered feed context slug the post targets ('' for personal posts).
- `$feed_subject` (int) Subject ID sent by the client (0 when none).
