Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

Mark Wilkinson on "Custom Capability for Custom Post Type"

$
0
0

I thought this would be easy and actually maybe it is, but after lots of searching it does seem rather complicated and difficult to find help and a solution. Here goes...

I have a site that am using a custom post type on. As normal I added the site without setting any capabilities etc. I have Authors on the site that I want to be able to edit their own pages and posts, which I have succeeded with. However I only want specific users to be able to do anything with my custom post type (see, edit, add and delete).

Therefore I thought a relatively good solution would be to make it so that only users with a certain capability get to see the custom post type. If they don't have that capability they don't even see the menu item in the WordPress admin. I could then assign users this capability as and when need with the User Role Editor plugin.

How would be best to go about this? Thanks in advance.


Viewing all articles
Browse latest Browse all 8245

Trending Articles