Just because a user can list_roles does not mean they need to have the Members menu item added to their admin. For example, if we want to allow a manager to promote an employee to become a manager they need the ability to list_roles but do not need to have the Members menu added to their admin interface.
usage:
// Only show members manager in admin to admins.
add_filter( 'members_min_show_admin_role', 'show_role_manager' );
function show_role_manager( $edit_roles_cap ){
return 'edit_roles';
}
Just because a user can list_roles does not mean they need to have the Members menu item added to their admin. For example, if we want to allow a manager to promote an employee to become a manager they need the ability to list_roles but do not need to have the Members menu added to their admin interface.
usage: