Can’t Access The Dashboard Functions

have a look at this, cause that seems to have changed for ur user with ur modifications: https://wordpress.org/support/article/roles-and-capabilities/#:~:text=WordPress%20has%20six%20pre-defined,“%2C%20and%20“edit_users“. would be better to tell us which theme modifications u made, otherwise it’s impossible to tell why what happened!

How to hide the tags “all, publish, thrash, draft, pending” for authors posts but not for the administrator?

You need to return the $views for admins, thats why you don’t see anyting. EDIT: IMPORTANT, you are using a action but you need to use filter function remove_edit_post_views ($views) { if (!current_user_can(‘manage_options’)) { unset($views[‘all’]); unset($views[‘publish’]); unset($views[‘trash’]); unset($views[‘draft’]); unset($views[‘pending’]); return $views; } return $views; // this is the missing piece } add_filter(‘views_edit-post’, ‘remove_edit_post_views’); You can … Read more