How To Remove Import/Export Option From Tools?

You may use the hook admin_menu() and function remove_submenu_page() The solution assumed the following conditions run it in theme functions.php, you may put somewhere else with different tweaking, but the following is proved to work in functions.php you know how to test the user access level by yourself, because the following solution is focus on … Read more

How To Create WordPress Dashboard Item

What you need to do in your case – is to create a custom post type. Please read about post types in WordPress here https://wordpress.org/support/article/post-types/ You can use a plugin to create Case Studies post type https://uk.wordpress.org/plugins/custom-post-type-ui/

How to exclude some post from admin edit screen

I’m not sure why you’re having trouble with pre_get_posts as that is the correct hook to use. For example, if we wanted to restrict the edit.php screen to only show posts from authors when the current user is an author we could say: /** * Pre Get Posts * Restrictions by Role * * @return … Read more