• Resolved rakesh1974

    (@rakesh1974)


    Hello

    I am the administrator and I installed the Members plugin… but after activation, I cannot see the first 2 submenus under members -> Roles and Add new role see screenshot https://snipboard.io/GdJncz.jpg

    Why is this happening how do I see all the menu items under Members

Viewing 1 replies (of 1 total)
  • Plugin Author Caseproof

    (@caseproof)

    Hi @rakesh1974

    We use the create_roles capability to display Members menu item. Please install Code Snippets plugin, add the code you can see below:

    $role_object = get_role( 'administrator' );
    
    // add $cap capability to this role object
    $role_object->add_cap( 'create_roles' );
    $role_object->add_cap( 'edit_roles' );
    $role_object->add_cap( 'list_roles' );
    $role_object->add_cap( 'delete_roles' );

    select the “Only run once” option, and run it once. Here is the screenshot for reference: https://prnt.sc/Tn-mffRM-bjk.

    It should add capabilities to Administrator roles.

    I hope that helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Cannot see roles and add new roles’ is closed to new replies.