Control Access to Custom Post Types
A large number of WordPress have sites with custom post types.
These custom post types often hold sensitive information.
In this guide, we'll show you how to control who can read, edit and publish content in your custom post types.
Default permissions for custom post types
By default, nearly all custom post types will inherit the same permissions as Posts. So a user in the “Editor” will role will automatically be able to write and edit in your custom post type.
If you need general permissions for your custom post type, check out this guide to using PublishPress Capabilities.
In contrast, this PublishPress Permissions guide will show you how to create highly customized permissions for your custom post type.
Add highly customized permissions for your post type
- Install the PublishPress Permissions Pro plugin.
- Go to Permissions > Settings > Core.
- Under “Filtered Post Types”, check the box for your post type. In the image below my post type is called “New Posts”.
- Click “Save Changes”.
- You will now be able to edit any post in your custom post type and see editing permissions.
Now that you have PublishPress Permissions Pro enabled, here are some ways you customize permissions for your content type:
- Allow multiple users to edit a single item in your custom post type
- Create a personal post for each user
- Prevent users from choosing a Category in your custom post type
- Restrict users to posting in only one category
- Force users to use a single parent page
All these highly customized options are available with PublishPress Permissions.