runofthemill on "[Plugin: Groups] 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 IV

If user is in Region I, function retus example.com/region-i, and if user is in region IV, function retus 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!

https://wordpress.org/plugins/groups/

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 328 تاريخ : جمعه 15 مرداد 1395 ساعت: 10:43