Clanbite Forums Forums

apply_filters( 'clanbite_forums_user_can_delete_reply', bool $can, int $user_id, object $reply, object $topic )

Filters whether a user may delete/hide a forum reply.

Filter PHP

Parameters

$can (bool)

Whether delete is allowed.

$user_id (int)

User ID.

$reply (object)

Reply row.

$topic (object)

Parent topic row.

Example

add_filter( 'clanbite_forums_user_can_delete_reply', function ( $can, $user_id, $reply, $topic ) {
	// Change $can here.
	return $can;
}, 10, 4 );

Defined in inc/forums-action-menus.php