Clanbite Social Kit Social Since 1.6.2

apply_filters( 'clanbite_social_kit_user_can_delete_comment', bool $can, object $comment, object|null $post_row, int $user_id )

Filters whether a user may delete a social comment.

Filter PHP

Parameters

$can (bool)

Whether the author, the post's manager or a site administrator.

$comment (object)

Comment row.

$post_row (object|null)

Parent post row.

$user_id (int)

User ID.

Example

add_filter( 'clanbite_social_kit_user_can_delete_comment', function ( $can, $comment, $post_row, $user_id ) {
	// Change $can here.
	return $can;
}, 10, 4 );

Defined in inc/Social/Data_Access.php

Changelog

VersionDescription
1.6.2Introduced.