delete_owned_post( int $post_id, int $author_id ): true|\WP_ErrorDelete 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) RequiredSocial post ID.
$author_id(int) RequiredCurrent user (checked with user_can_delete_post_row()).
Returns
true|\WP_Error
Defined in inc/Social/Data_Access.php
Changelog
| Version | Description |
|---|---|
| 1.4.1 | Updated. |