{"id":9713,"date":"2010-07-31T09:34:29","date_gmt":"2010-07-31T09:34:29","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/map-cap\/"},"modified":"2013-08-15T18:31:46","modified_gmt":"2013-08-15T18:31:46","slug":"map-cap","status":"publish","type":"plugin","link":"https:\/\/pap-aw.wordpress.org\/plugins\/map-cap\/","author":5728390,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.1","stable_tag":"2.1","tested":"3.1.4","requires":"3.1","requires_php":"","requires_plugins":"","header_name":"Map Cap","header_author":"Brent Shepherd","header_description":"","assets_banners_color":"","last_updated":"2013-08-15 18:31:46","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/thenbrent\/map-cap","header_author_uri":"http:\/\/find.brentshepherd.com\/","rating":5,"author_block_rating":0,"active_installs":200,"downloads":7835,"num_ratings":4,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"2.1":"<ul>\n<li>Important Upgrade to fix potential &#039;Invalid argument supplied for foreach() in map-cap.php on line 268&#039; notices<\/li>\n<\/ul>","2.0":"<ul>\n<li>Important Upgrade to fix a variety of issues with deleting posts and drafts. Requires WordPress 3.1+<\/li>\n<\/ul>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"4"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","2.0","2.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1538884","resolution":"1","location":"plugin"}},"screenshots":{"1":"<strong>Admin Map Cap Settings Page<\/strong> - Site administrators can choose the capabilities each role has for each custom post type."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1913,1487,1915],"plugin_category":[58],"plugin_contributors":[83372],"plugin_business_model":[],"class_list":["post-9713","plugin","type-plugin","status-publish","hentry","plugin_tags-capabilities","plugin_tags-custom-post-types","plugin_tags-roles","plugin_category-user-management","plugin_contributors-thenbrent","plugin_committers-thenbrent"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/map-cap.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/map-cap\/trunk\/screenshot-1.png?rev=1538884","caption":"<strong>Admin Map Cap Settings Page<\/strong> - Site administrators can choose the capabilities each role has for each custom post type."}],"raw_content":"<!--section=description-->\n<p>Using custom post types on your site?<\/p>\n\n<p>Install this plugin to control which roles can publish, edit and delete posts of each custom type.<\/p>\n\n<p>For this plugin to work, your custom post type must meet a number of requirements as outlined in the <a href=\"http:\/\/wordpress.org\/extend\/plugins\/map-cap\/faq\/\">FAQ<\/a>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Download and unzip the plugin<\/li>\n<li>Upload the <code>map-cap<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the <code>Plugins<\/code> menu in WordPress<\/li>\n<li>Navigate to <code>Map Cap<\/code> under the <code>Settings<\/code> menu to set capabilities<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Why aren't all my custom post types listed on the options page?<\/dt>\n<dd><p>There are four requirements for a custom post type to show up in Map Cap's settings page.<\/p>\n\n<p>The post type must:<\/p>\n\n<ol>\n<li>be public<\/li>\n<li>not be a built-in post type eg. page &amp; post<\/li>\n<li>use a custom capability type (not the default capability of <em>post<\/em>). This is done when registering the Custom Post Type. In the <code>$args<\/code> array you pass to the <code>register_post_type<\/code> function, your plugin must have <code>capability_type =&gt;<\/code> set to something other than post.<\/li>\n<li>be registered with the <code>map_meta_cap<\/code> argument set to <code>true<\/code> - the default is <code>false<\/code>. Without this parameter set to <code>true<\/code>, WordPress does not map any meta capabilities.<\/li>\n<\/ol><\/dd>\n<dt>Force Mapping<\/dt>\n<dd><p>As many custom post types do not set the <code>map_meta_cap<\/code> to true, Map Cap offers an option to change the value of the <code>map_meta_cap<\/code>.<\/p>\n\n<p>For this to work, the plugin must register the post type on the <code>init<\/code> hook with a priority less than 10,000.<\/p>\n\n<p>This feature works with the <a href=\"http:\/\/wordpress.org\/extend\/plugins\/custom-post-type-ui\/\">Custom Post Type UI plugin<\/a> plugin but is not guaranteed to work with any other plugins.<\/p><\/dd>\n<dt>Using the Custom Post Type UI plugin?<\/dt>\n<dd><p>If you are using the <a href=\"http:\/\/wordpress.org\/extend\/plugins\/custom-post-type-ui\/\">Custom Post Type UI plugin<\/a>, when adding a custom post type, you must click <em>View Advanced Options<\/em> and change <em>Capability Type<\/em> to something other than <em>post<\/em>. For example, for a custom post type of <em>Stories<\/em> the capability could be <em>story<\/em>.<\/p>\n\n<p>You then need select the custom post type under the <em>Force Mapping<\/em> section of the Map Cap settings page.<\/p><\/dd>\n<dt>Where can I report bugs?<\/dt>\n<dd><p>Add a new post in the WordPress.org <a href=\"http:\/\/wordpress.org\/tags\/map-cap\">Plugin's Support Forum<\/a>.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.1<\/h4>\n\n<ul>\n<li>Fix 'Invalid argument supplied for foreach() in map-cap.php on line 268' when deactivating a plugin or theme which registered the custom post type Map Cap was operating on<\/li>\n<\/ul>\n\n<h4>2.0<\/h4>\n\n<ul>\n<li>Changing capabilities for custom posts with \"post\" capability type no longer allowed<\/li>\n<li>Option to change the <code>map_meta_cap<\/code> flag at run-time<\/li>\n<li>When changing a shared capability, a warning is shown<\/li>\n<li>Readme changes to help resolve common issues.<\/li>\n<li>Fixing bug where a post without the 'author' feature could not be trashed while having Draft status.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Control who can publish, edit and delete custom post types.  Silly name, useful code.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/9713","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=9713"}],"author":[{"embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/thenbrent"}],"wp:attachment":[{"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=9713"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=9713"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=9713"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=9713"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=9713"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=9713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}