Title: cct_webapi
Author: rag-guay
Published: <strong>2012 年 8 月 21 日</strong>
Last modified: 2012 年 8 月 21 日

---

搜尋外掛

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

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

# cct_webapi

 由 [rag-guay](https://profiles.wordpress.org/rag-guay/) 開發

[下載](https://downloads.wordpress.org/plugin/cct-api.1.0.zip)

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

 [技術支援](https://wordpress.org/support/plugin/cct-api/)

## 外掛說明

Many times when a site powered by WordPress wants to supply a Web API for their 
site, they will work outside of WordPress using either PHP or Ruby on Rails. Then
they have to write their own functions to get to the information inside the database
for their WordPress site. I always thought that was a little backwards. That is 
why I wrote the Web API plugin for WordPress.

With the Web API plugin, you no longer have to do that. This plugin creates a custom
post type called API. When you create an API post, all of the content will be executed
as PHP code just before the theme stuff is executed in WordPress. Therefore, you
have full access to all the WordPress PHP functions to create whatever you want:
JSON output, HTML sniplets, full HTML pages without any of the sites theme or code,
or anything else you can imagine. After the code on the page is executed, then the
PHP session will be ended.

## 安裝方式

 1. Upload `cct_webapi.zip` to the `/wp-content/plugins/` directory and unzip.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Create a new API post type with you PHP code and you are running!

## 常見問題集

None.

## 使用者評論

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

## 參與者及開發者

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

參與者

 *   [ rag-guay ](https://profiles.wordpress.org/rag-guay/)

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

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

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

## 變更記錄

#### 1.0

 * First Version.

## 中繼資料

 *  版本 **1.0**
 *  最後更新 **14 年前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 3.2 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.4.2**
 *  語言
 * [English (US)](https://wordpress.org/plugins/cct-api/)
 * 標籤:
 * [webapi](https://tw.wordpress.org/plugins/tags/webapi/)
 *  [進階檢視](https://tw.wordpress.org/plugins/cct-api/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](https://wordpress.org/support/plugin/cct-api/reviews/#new-post)

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

## 參與者

 *   [ rag-guay ](https://profiles.wordpress.org/rag-guay/)

## 技術支援

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

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

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](http://customct.com)