Clanbite Social Kit Since 1.6.2
user_can_delete_comment_row( object $comment, ?object $post_row, int $user_id ): boolWhether a user may delete a comment: its author, whoever manages the post it is on, or a site administrator (moderation).
public static
Class: Kernowdev\ClanbiteSocialKit\Social\Data_Access
Parameters
$comment(object) RequiredComment row.
$post_row(object|null) RequiredParent post row (loaded when null).
$user_id(int) RequiredUser ID.
Returns
bool
Defined in inc/Social/Data_Access.php
Changelog
| Version | Description |
|---|---|
| 1.6.2 | Introduced. |