WordPress.org

Ready to get started?Download WordPress

Forums

Role Scoper
[Role scoper] how to manage visibility of the custom fields ? (3 posts)

  1. ben.IT
    Member
    Posted 1 year ago #

    HI,
    I am working on a wordpress project where I need to add custom fields in the back office for post edition.
    I wonder how can I manage the visibility of the custom fields I have added using roles defined with role scoper.
    For instance, I'd like to hide my custom field for some user usergroups and display it for others user groups.
    Does anybody can help me ?
    Thanks, greetings.
    Ben

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

  2. kevinB
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry, but Role Scoper doesn't handle custom field visibility.

  3. ben.IT
    Member
    Posted 1 year ago #

    hi kevinB,
    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