LPH
Well-known member
The following returns the usergroup ID but now I'd like to match the current user logged in with their secondary usergroup.
Basically ... along this line of thinking....
If the currently logged in user is a member of usergroup 2 then do something.
Is this possible?
Code:
$user_groups = explode(',', $secondary_group_ids );
$user_groups[]= $user_group_id;
Basically ... along this line of thinking....
If the currently logged in user is a member of usergroup 2 then do something.
Is this possible?