Support » Plugin: User Access Manager » How to check into a template the groups of the current user

  • Trebly

    (@trebly)


    Hi,

    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 on 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.

    • This topic was modified 12 months ago by Trebly.
  • The topic ‘How to check into a template the groups of the current user’ is closed to new replies.