Clanbite Social Kit Since 1.4.1

user_can_delete_post_row( object $row, int $user_id ): bool

Whether the user can delete a post row: anyone who can manage it, plus site administrators (moderation).

Administrators can remove other members' posts but not edit them, so this is separate from Data_Access::user_can_manage_post_row().

public static

Class: Kernowdev\ClanbiteSocialKit\Social\Data_Access

Parameters

$row (object) Required

Post row.

$user_id (int) Required

User ID.

Returns

bool

Defined in inc/Social/Data_Access.php

Changelog

VersionDescription
1.4.1Introduced.