apply_filters( 'clanbite_forums_user_can_edit_topic', bool $can, int $user_id, object $topic )Filters whether a user may edit a forum topic via the REST API / block UI.
Filter PHP
Parameters
$can(bool)Whether editing is allowed (core checks already applied).
$user_id(int)Editor user ID.
$topic(object)Topic row from the database.
Example
add_filter( 'clanbite_forums_user_can_edit_topic', function ( $can, $user_id, $topic ) {
// Change $can here.
return $can;
}, 10, 3 );Defined in inc/forums-action-menus.php