Remove Other Role from users.php
-
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
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Remove Other Role from users.php’ is closed to new replies.