WordPress.org

Ready to get started?Download WordPress

Forums

Changing roles ? (4 posts)

  1. kitty
    Member
    Posted 8 years ago #

    I would like to change the roles. F.e I would like to add view levels to the subscriber role (level_1, level_2) etc.

    Does anyone know if this is possible and how ?

  2. davidhouse
    Member
    Posted 8 years ago #

    You can't do this with just WordPress. Plugins to do this will likely be available soon.

  3. kitty
    Member
    Posted 8 years ago #

    It must be possible to change the code ?

    In the previous version of WordPress I changed the code in menu.php in the wp-admin folder but the menu.php has changed

    OLD MENU FILE
    // Menu item name
    // The minimum level the user needs to access the item: between 0 and 10
    // The URL of the item's file
    $menu[0] = array(__('Dashboard'), 0, 'index.php');
    $menu[5] = array(__('Write'), 6, 'post.php');

    NEW MENU FILE
    $menu[0] = array(__('Dashboard'), 'read', 'index.php');
    $menu[5] = array(__('Write'), 'edit_posts', 'post.php');

  4. Kafkaesqui

    Posted 8 years ago #

    This should help understand the new capabilities for WordPress user roles:

    http://codex.wordpress.org/Roles_and_Capabilities

    But as David mentions, look for plugins to do this:

    http://redalt.com/wiki/Role+Manager

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags