Clanbite Social Kit

delete_owned_post( int $post_id, int $author_id ): true|\WP_Error

Delete a post and dependent rows (author, team or group manager, or site administrator).

public static

Class: Kernowdev\ClanbiteSocialKit\Social\Data_Access

Parameters

$post_id (int) Required

Social post ID.

$author_id (int) Required

Current user (checked with user_can_delete_post_row()).

Returns

true|\WP_Error

Defined in inc/Social/Data_Access.php

Changelog

VersionDescription
1.4.1Updated.