I am working with the Role and Capabilities API for the first time today and making use of the the excellent Members plugin. Having tinkered around for some time I notice that the “edit pages” capability does two things:
- Allow the user to create a new page
- Allow the user to edit existing pages
I am trying to split this capability into two. I want my user to:
- Not be able to create any new pages
- Allow the user to edit existing pages
I am looking to write some code for my theme that allows this to happen. I can create a new capability very easily. The challenge is then getting WordPress to respond accordingly to it.
Any thoughts would be appreciated.