Support » Plugin: Role Scoper » [Plugin: Role Scoper] Getting the group of the current user to display/add extra custom fields

  • Resolved ben.IT

    (@benit)


    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/

Viewing 1 replies (of 1 total)
  • 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

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Role Scoper] Getting the group of the current user to display/add extra custom fields’ is closed to new replies.