I want to limit the access rights of a user in the Wordpress backend in a way that this user only has (read, write) access to the posts from one category. The user should not even be able to read posts from another category in the backend.
How can I achieve this (ideally by adding some code to the functions.php) - and without any performance impacts (e.g. page load)?
I basically try to achieve what this plugin did, before it got outdated: https://wordpress.org/plugins/restrict-categories/
"Restrict Categories is a plugin that allows you to select which categories users can view, add, and edit in the Posts edit screen. This plugin allows you to restrict access based on the user role AND username."