Clanbite

clanbite_groups_user_is_member( int $group_id, ?int $user_id = null ): bool

Whether the user is a member of the group (visibility checks, e.g. team_members–style event access).

The plugin that registers cp_group should filter this; core defaults to false.

Parameters

$group_id (int) Required

Group object ID.

$user_id (int|null) Optional

User ID or null for the current user.

Default: null

Returns

bool

Defined in inc/groups/functions.php