Clanbite Social Kit

update_owned_post( int $post_id, int $author_id, string $content, string|null $link_url, string|null $link_title, string|null $link_preview_json ): true|\WP_Error

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

public static

Class: Kernowdev\ClanbiteSocialKit\Social\Data_Access

Parameters

$post_id (int) Required

Social post ID.

$author_id (int) Required

Current user (must match author).

$content (string) Required

HTML-safe content.

$link_url (string|null) Required

Stored link URL or null.

$link_title (string|null) Required

Optional link title or null.

$link_preview_json (string|null) Required

JSON for link preview or null.

Returns

true|\WP_Error

Defined in inc/Social/Data_Access.php