Support » Plugin: Role Scoper » [Plugin: Role Scoper] get associated roles to post in loop?

Viewing 1 replies (of 1 total)
  • Plugin Author Kevin Behrens

    (@kevinb)

    now I would like to output every user from the user group subscriber of each post in the loop

    I’m not sure if you are referring to a custom-defined role group or a WP role. These could be helpful:

    $users = ScoperAdminLib::get_group_members( $group_id );
    global $scoper;
    $users = $scoper->users_who_can( 'read', COLS_ALL_RS, 'post', $post_id );
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Role Scoper] get associated roles to post in loop?’ is closed to new replies.