WordPress.org

Ready to get started?Download WordPress

Forums

Role Scoper
[resolved] Getting the group of the current user to display/add extra custom fields (2 posts)

  1. ben.IT
    Member
    Posted 2 years ago #

    Hi,
    I am developping a pluggin which adds some extra custom fields and performs synchonisation tasks via XMLRPC.
    I'd like to show some custom fields only if the user is member of a special group defined using role scoper.

    Does anybody knows how can I do that ?

    Thanks,
    greetings
    ben

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

  2. ben.IT
    Member
    Posted 2 years ago #

    Hi, I found what I want in rolescoper core source.
    Those methods help me :

    $role_scoper_group_id = ScoperAdminLib::get_group_by_name('my group ')->ID;
    $group_member = ScoperAdminLib::get_group_members($role_scoper_group_id ) ;

    enjoy ;)
    greetings,
    ben

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic