Title: Remove Other Role from users.php
Last modified: August 22, 2016

---

# Remove Other Role from users.php

 *  Resolved [marshallsam](https://wordpress.org/support/users/marshallsam/)
 * (@marshallsam)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/remove-other-role-from-usersphp/)
 * Hi,
 * I am trying to remove both roles and other roles from the users.php table. I 
   have managed to remove role using the code below:
 * add_action(‘manage_users_columns’,’remove_user_posts_column’);
    function remove_user_posts_column(
   $column_headers) { unset($column_headers[‘posts’]); unset($column_headers[‘role’]);
   unset($column_headers[‘name’]); return $column_headers; }
 * However I added this line:
 * unset($column_headers[‘ure_roles’]);
 * to remove other roles without success?
 * Could anyone advice me on this please?
 * Thanks,
 * Sam
 * [https://wordpress.org/plugins/user-role-editor/](https://wordpress.org/plugins/user-role-editor/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/)
 * (@shinephp)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/remove-other-role-from-usersphp/#post-5644832)
 * Hi Sam,
 * URE adds ‘Other roles’ column with priority 10, so to remove it you need to call
   remove_user_posts_column() with priority >=10. Otherwise your code is executed
   before URE’s one.
    Try this:
 *     ```
       add_action('manage_users_columns','remove_user_posts_column', 11);
       ```
   
 *  Thread Starter [marshallsam](https://wordpress.org/support/users/marshallsam/)
 * (@marshallsam)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/remove-other-role-from-usersphp/#post-5644909)
 * Hi,
 * That worked perfectly.
 * Thank you
 * Sam
 *  [vcb](https://wordpress.org/support/users/vcb/)
 * (@vcb)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/remove-other-role-from-usersphp/#post-5644960)
 * Post is not related to URE.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Remove Other Role from users.php’ is closed to new replies.

 * ![](https://ps.w.org/user-role-editor/assets/icon-256x256.jpg?rev=1020390)
 * [User Role Editor](https://wordpress.org/plugins/user-role-editor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-role-editor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-role-editor/)
 * [Active Topics](https://wordpress.org/support/plugin/user-role-editor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-role-editor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-role-editor/reviews/)

## Tags

 * [remove](https://wordpress.org/support/topic-tag/remove/)

 * 3 replies
 * 3 participants
 * Last reply from: [vcb](https://wordpress.org/support/users/vcb/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/remove-other-role-from-usersphp/#post-5644960)
 * Status: resolved