Skip to content

Instantly share code, notes, and snippets.

@hayskytech
Created August 24, 2022 17:18
Show Gist options
  • Save hayskytech/dc7ad6f26a3574f50ebfea42659ed047 to your computer and use it in GitHub Desktop.
Save hayskytech/dc7ad6f26a3574f50ebfea42659ed047 to your computer and use it in GitHub Desktop.
<?php
add_filter('manage_users_columns','remove_users_columns');
function remove_users_columns($column_headers) {
// if (current_user_can('moderator')) {
unset($column_headers['name']);
// }
return $column_headers;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment