post views column in the admin page

Posted in: Newspaper
Post count: 10

How do I remove the post views column in the admin page? I want to work with employees, but does not want them to have access to this information.

Post count: 9544

You can use a plugin to set user roles and set what elements of the admin panel are viewable by each user role; so this would also allow limiting access to other things as well.

However, TagDiv might have some advice on how to “hack” the function to only show the element to users with “admin” level.

Post count: 22421

Hi,
Thanks Chris. If you want to “hack” the function, you can add a condition to this code: http://screencast.com/t/Rmd0Wufrdag using a WP function: https://codex.wordpress.org/Function_Reference/current_user_can
This way you can show the views only to a specific type of users depending on the $capability you target.
Thank you!

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.