clanbite_groups_user_is_member( int $group_id, ?int $user_id = null ): boolWhether 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) RequiredGroup object ID.
$user_id(int|null) OptionalUser ID or null for the current user.
Default:
null
Returns
bool
Defined in inc/groups/functions.php