Title: Map Cap
Author: thenbrent
Published: <strong>2010 年 7 月 31 日</strong>
Last modified: 2013 年 8 月 15 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/map-cap.svg)

# Map Cap

 由 [thenbrent](https://profiles.wordpress.org/thenbrent/) 開發

[下載](https://downloads.wordpress.org/plugin/map-cap.2.1.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/map-cap/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/map-cap/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/map-cap/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/map-cap/#developers)

 [技術支援](https://wordpress.org/support/plugin/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](https://wordpress.org/extend/plugins/map-cap/faq/).

## 螢幕擷圖

[⌊Admin Map Cap Settings Page - Site administrators can choose the capabilities 
each role has for each custom post type.⌉⌊Admin Map Cap Settings Page - Site administrators
can choose the capabilities each role has for each custom post type.⌉[

**Admin Map Cap Settings Page** – Site administrators can choose the capabilities
each role has for each custom post type.

## 安裝方式

 1. Download and unzip the plugin
 2. Upload the `map-cap` folder to the `/wp-content/plugins/` directory
 3. Activate the plugin through the `Plugins` menu in WordPress
 4. Navigate to `Map Cap` under the `Settings` menu to set capabilities

## 常見問題集

  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:

 1. be public
 2. not be a built-in post type eg. page & post
 3. use 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.
 4. be 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](https://wordpress.org/extend/plugins/custom-post-type-ui/)
plugin but is not guaranteed to work with any other plugins.

  Using the Custom Post Type UI plugin?

If you are using the [Custom Post Type UI plugin](https://wordpress.org/extend/plugins/custom-post-type-ui/),
when adding a custom post type, you must click _View Advanced Options_ and change
_Capability Type_ to something other than _post_. For example, for a custom post
type of _Stories_ the capability could be _story_.

You then need select the custom post type under the _Force Mapping_ section of the
Map Cap settings page.

  Where can I report bugs?

Add a new post in the WordPress.org [Plugin’s Support Forum](https://wordpress.org/tags/map-cap).

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Map Cap〉的開發相關工作。

參與者

 *   [ thenbrent ](https://profiles.wordpress.org/thenbrent/)

[將〈Map Cap〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/map-cap)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/map-cap/)、查看
[SVN 存放庫](https://plugins.svn.wordpress.org/map-cap/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/map-cap/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/map-cap/)。

## 變更記錄

#### 2.1

 * 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

#### 2.0

 * Changing capabilities for custom posts with “post” capability type no longer 
   allowed
 * Option to change the `map_meta_cap` flag at run-time
 * When changing a shared capability, a warning is shown
 * Readme changes to help resolve common issues.
 * Fixing bug where a post without the ‘author’ feature could not be trashed while
   having Draft status.

#### 1.0

 * Initial release.

## 中繼資料

 *  版本 **2.1**
 *  最後更新 **13 年前**
 *  啟用安裝數 **200+**
 *  WordPress 版本需求 ** 3.1 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.1.4**
 *  語言
 * [English (US)](https://wordpress.org/plugins/map-cap/)
 * 標籤:
 * [capabilities](https://tw.wordpress.org/plugins/tags/capabilities/)[custom post types](https://tw.wordpress.org/plugins/tags/custom-post-types/)
   [roles](https://tw.wordpress.org/plugins/tags/roles/)
 *  [進階檢視](https://tw.wordpress.org/plugins/map-cap/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  4 個 5 星使用者評論     ](https://wordpress.org/support/plugin/map-cap/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/map-cap/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/map-cap/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/map-cap/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/map-cap/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/map-cap/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/map-cap/reviews/)

## 參與者

 *   [ thenbrent ](https://profiles.wordpress.org/thenbrent/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/map-cap/)