# Data_Access::update_owned_post()

Update post body and optional link fields (author only).

```php
update_owned_post( int $post_id, int $author_id, string $content, $link_url, $link_title, $link_preview_json )
```

## Parameters

- `$post_id` (int) Social post ID.
- `$author_id` (int) Current user (must match author).
- `$content` (string) HTML-safe content.
- `$link_url` (string|null) Stored link URL or null.
- `$link_title` (string|null) Optional link title or null.
- `$link_preview_json` (string|null) JSON for link preview or null.

## Return

`true|\WP_Error`
