Allow a page to be edited by a specific custom role
-
17-04-2021 - |
Question
I have created multiple custom roles using the members plugin by Justin Tadlock.
Now i want certain pages to only be editable by the custom roles i select for them.
Is there a plugin i can use for that functionality or is that something i would have to code myself?
Thanks in advance.
Solution
I fixed it already.
I used the ACF User role selector to select roles per page. Then i made a checker for every page that matches the current logged in role with the role selected on the page.
Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange