# Data_Access::insert_post()

Insert a post.

```php
insert_post( array $data )
```

## Parameters

- `$data` (array<string, mixed>) author_id, actor_user_id, target_user_id, team_id, group_id, post_as_team, post_as_group, post_type, activity_type, content, link_url, link_title, link_preview_json, poll_json, shared_post_id, visibility, replies_disabled.

## Return

`int|\WP_Error`
