apply_filters( 'clanbite_forums_user_meets_moderator_role_gate', bool $allow, int $user_id, \WP_User $user )Filter whether the user counts as “moderator or above” for forums moderation (REST + block UI).
Filter PHP
Parameters
$allow(bool)Whether the gate passes.
$user_id(int)User ID.
$user(\WP_User)User object.
Example
add_filter( 'clanbite_forums_user_meets_moderator_role_gate', function ( $allow, $user_id, $user ) {
// Change $allow here.
return $allow;
}, 10, 3 );Defined in inc/Rest/Permissions.php