insert_post( array $data ): int|\WP_ErrorInsert a post.
public static
Class: Kernowdev\ClanbiteSocialKit\Social\Data_Access
Parameters
$data(array<string, mixed>) Requiredauthor_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.
Returns
int|\WP_Error
Defined in inc/Social/Data_Access.php