Clanbite Forums Forums

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

Filters whether a user may delete (trash) a forum topic.

Filter PHP

Parameters

$can (bool)

Whether delete is allowed.

$user_id (int)

User ID.

$topic (object)

Topic row.

Example

add_filter( 'clanbite_forums_user_can_delete_topic', function ( $can, $user_id, $topic ) {
	// Change $can here.
	return $can;
}, 10, 3 );

Defined in inc/forums-action-menus.php