Forums

Role Scoper
get associated roles to post in loop? (2 posts)

  1. tompacc
    Member
    Posted 7 months ago #

    Hy,

    I have restricted each post to one or more users, works perfekt! now I would like to output every user from the user group subscriber of each post in the loop. Is that possible? I tried to dig into the role scoper code but can not find what I need.

    thanks for the help!!

    http://wordpress.org/extend/plugins/role-scoper/

  2. kevinB
    Member
    Posted 7 months ago #

    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 );

Reply

You must log in to post.

About this Plugin

About this Topic