Clanbite Forums Forums

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

Filters whether an author may delete their own reply.

Filter PHP

Parameters

$can (bool)

Whether deletion is allowed.

$reply (object)

Reply row.

$topic (object)

Parent topic row.

$user_id (int)

Acting user ID.

Example

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

Defined in inc/forums-action-menus.php