Clanbite Forums

user_meets_wp_moderator_role_gate( int $user_id ): bool

Whether the user meets the WordPress “moderator or above” gate for forums moderation UI and actions.

Defaults: any of the filtered moderator-gate capabilities, or roles from 'clanbite_forums_moderator_minimum_role_slugs' (administrator, moderator). Site-wide forum managers are defined separately by user_can_manage_site(). Use 'clanbite_forums_moderator_gate_capabilities' and the role-slugs filter together for custom stacks.

public static

Class: Kernowdev\ClanbiteForums\Rest\Permissions

Parameters

$user_id (int) Required

User ID.

Returns

bool

Defined in inc/Rest/Permissions.php