Two toggles, because they are two different facts. Named side by side, neither can pretend to be the other.
Added
- Hide takes the item out of that role’s admin menu and nothing else. The page stays reachable by its URL. It applies immediately, and a person with several roles keeps an item unless every role hides it. This plugin’s own screens cannot be hidden.
- Block removes the capability, in the draft, and commits only when you save the role. It asks first and names what else that capability opens.
edit_postsis Posts, Comments, the editor and REST.
Requires WordPress 6.0+ and PHP 7.4+.