Map Cap
Using custom post types on your site? Install this plugin to control which roles can publish, edit and delete posts of each custom type. For this plugin to work, your custom post type must meet a number of requirements as outlined in the FAQ .
About this tool.
Using custom post types on your site?
Install this plugin to control which roles can publish, edit and delete posts of each custom type.
For this plugin to work, your custom post type must meet a number of requirements as outlined in the FAQ .
A closer look.
Getting started.
- 01Download and unzip the plugin
- 02Upload the map-cap folder to the /wp-content/plugins/ directory
- 03Activate the plugin through the Plugins menu in WordPress
- 04Navigate to Map Cap under the Settings menu to set capabilities
Frequently asked questions.
Why aren’t all my custom post types listed on the options page?
There are four requirements for a custom post type to show up in Map Cap’s settings page.
The post type must:
- 01be public
- 02not be a built-in post type eg. page & post
- 03use a custom capability type (not the default capability of post ). This is done when registering the Custom Post Type. In the $args array you pass to the register_post_type function, your plugin must have capability_type => set to something other than post.
- 04be registered with the map_meta_cap argument set to true – the default is false . Without this parameter set to true , WordPress does not map any meta capabilities.
Force Mapping
As many custom post types do not set the map_meta_cap to true, Map Cap offers an option to change the value of the map_meta_cap .
For this to work, the plugin must register the post type on the init hook with a priority less than 10,000.
This feature works with the Custom Post Type UI plugin plugin but is not guaranteed to work with any other plugins.