前言介紹
- 這款 WordPress 外掛「cct_webapi」是 2012-08-20 上架。
- 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
- 上一次更新是 2012-08-21,距離現在已有 4640 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.2 以上版本才可以安裝。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
rag-guay |
外掛標籤
webapi |
內容簡介
許多透過WordPress運行的網站想提供Web API,往往需要使用PHP或Ruby on Rails等編程語言並跳脫WordPress外,進而編寫功能以取得其WordPress站點資料庫內容。我認為這樣做有些不太對勁,因此撰寫了Web API的WordPress外掛。
藉由使用Web API外掛,您不再需要這樣做。這個外掛會建立一個名為API的自訂文章類型。當您發佈API文章時,所有內容都會被當作PHP程式碼執行,並在WordPress的佈景主題執行之前先執行。因此,您可以完全存取所有WordPress PHP函數,並創建任何您想要的內容:JSON輸出、HTML片段、不帶任何網站佈景主題或程式碼的完整HTML頁面,或任何您能想像到的東西。頁面程式碼執行完畢後,PHP會退出。
原文外掛簡介
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.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「cct_webapi」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
Rover IDX 》* Rover IDX 是您的辦公室或代理網站快速且可高度自訂的 IDX *, Rover IDX for WordPress 是一個可用於行動裝置的響應式房地產 IDX 外掛,為網站訪客提供快速...。