For some purposes I made a plugin that automatically makes posts with a specific category. Now in admin posts section, posts with that specific category have been too plentyfull and finding other posts has been difficult.
For this I wrote another plugin and want to prevent showing posts of that specific category id or slug in admin posts section without using any third party plugin. And I want to make a menu in admin section to show posts of that specific category in that.
My target category slug is 'eventscat' .
But I don't know how do it, what hook must I use?
pre_get_posts
action - why do you want to do this?