WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. tompacc
    Member
    Posted 2 years 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
    Plugin Author

    Posted 2 years 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 );

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic