Clanbite Social Kit

clanbite_social_kit_get_group_member_role( int $group_id, ?int $user_id = null ): string|null

Get a user's role in a group.

Parameters

$group_id (int) Required

Group post ID.

$user_id (int|null) Optional

User ID (defaults to current user).

Default: null

Returns

string|null Role or null if not a member.

Defined in inc/Groups/functions.php