function plt_hide_user_role_editor_menus() {
//Hide the "Users → User Role Editor" menu.
remove_submenu_page('users.php', 'users-user-role-editor.php');
//Hide the "Settings → User Role Editor" menu.
remove_submenu_page('options-general.php', 'settings-user-role-editor.php');
}
add_action('admin_menu', 'plt_hide_user_role_editor_menus', 11);