Get current users sub-group
-
Hi there – great plugin! I’m having a hard time understanding the API documentation; I’m trying to write a filter that lists the single (admin-enforced) group a user belongs to within a specific parent group, in order to modify a menu link.
Group hierarchy:
– Regions
|- Region I
|- Region II
|- Region III
|- Region IVIf user is in Region I, function returns example.com/region-i, and if user is in region IV, function returns example.com/region-iv
I’m pretty sure I could figure out if I was using a flat group structure, but I’m not sure how to deal with the parent level
Any suggestions on how to tackle?
Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Get current users sub-group’ is closed to new replies.