How to get and check into a template the groups of the current user
Hi,
This is another linked question in a same way as #265 question, seems to be a duplicate of #160 that I just found into GitHub related list of issues. But I maintain it here because of my formulation which can, I think so, be used for documentation.
Currently UAM selection for access is associated to most of WP objects ( post, page, W4postList...). The selection column (uam_post_access) appears into the definition of these objects.
Some of these objects can be parts of others (like W4postlist : a same post can contain several lists, then various user attached to different groups will not get the same lists).
When the content of a built-report (as list of post or other elements like : author, users, category, comments) is not pre-defined you can need to filter the elements (sample comments lists) using either the attachment of the element to another object control by UAM either wish to use directly groups of the current user.
**Then I would need to know how it can be possible to get the UAM groups of the current user into a template of a theme **
Best regards
Trebly
note 1 : this needs from developer to use the list of all groups into his template. This need a stable list of groups which is the same as for any development of site. The list is then hard coded or stored into db like for a plugin. note 2 : this extends the UAM capabilities without any change to his code.