Change WordPress user roles and capabilities › Forums › How to or FAQ › Defining Posts View Access in php › Reply To: Defining Posts View Access in php
11/01/2021 at 14:23
#7258
Vladimir
Keymaster
Really, when you create new role as a copy of ‘none’, URE adds to it at least one capability – ‘read’. Does your role has it? I did not make tests with absolutely empty roles.
It should not have difference what role do you use built-in or custom one. Role should exist and current user should have it.
I used ‘author’ role as an example only, it does not play a key role, what role to use.