Clanbite Social Kit Since 1.6.2

user_can_delete_comment_row( object $comment, ?object $post_row, int $user_id ): bool

Whether 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) Required

Comment row.

$post_row (object|null) Required

Parent post row (loaded when null).

$user_id (int) Required

User ID.

Returns

bool

Defined in inc/Social/Data_Access.php

Changelog

VersionDescription
1.6.2Introduced.