Title: SJF WP API Shortcode
Author: Scott Fennell
Published: <strong>2014 年 9 月 13 日</strong>
Last modified: 2015 年 12 月 24 日

---

搜尋外掛

![](https://ps.w.org/json-rest-api-shortcode/assets/banner-772x250.jpg?rev=1237755)

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

![](https://ps.w.org/json-rest-api-shortcode/assets/icon-256x256.jpg?rev=1237725)

# SJF WP API Shortcode

 由 [Scott Fennell](https://profiles.wordpress.org/scofennellgmailcom/) 開發

[下載](https://downloads.wordpress.org/plugin/json-rest-api-shortcode.2.0.9.zip)

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

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

## 外掛說明

Activate this plugin and use the shortcode [wp_api] in a post or page. It takes 
a few different arguments that are documented in the plugin source code.

## 螢幕擷圖

[⌊This screen shot shows the result of using the shortcode to fire an API request.⌉⌊
This screen shot shows the result of using the shortcode to fire an API request.⌉[

This screen shot shows the result of using the shortcode to fire an API request.

## 安裝方式

This section describes how to install the plugin and get it working.

 1. Upload `json-rest-api-shortcode` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Activate this plugin and use the shortcode [wp_api] in a post or page. It takes
    a few different arguments that are documented in the plugin source code.

## 常見問題集

#### Does my blog need the JSON REST API plugin in order for this plugin to work?

Until the JSON REST API is merged into core, yes.

#### If I use this plugin to ping a remote blog, does the remote blog need the JSON REST API?

Yes.

#### If I use this plugin to ping a remote blog, does the remote blog need to allow CORS?

Yes. One fantastic way to do this is to use this plugin on the remote blog: https://
wordpress.org/plugins/wp-cors/

#### Do I need to be careful when I use this plugin? Can it send real traffic and execute real database queries, including CRUD?

Yes.

## 使用者評論

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

## 參與者及開發者

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

參與者

 *   [ Scott Fennell ](https://profiles.wordpress.org/scofennellgmailcom/)

[將〈SJF WP API Shortcode〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/json-rest-api-shortcode)

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

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

## 變更記錄

#### 2.0.9

 * Updated for new version of API.

#### 2.0.1

 * Better console logging.

#### 2.0

 * Total rewrite for code cleanup and also to support v2 of the WP API.

#### 1.0.4

 * Include auth data in debug output.

#### 1.0.3

 * Fix bug with passing nonce for cookie auth.

#### 1.0.2

 * Refactor duplicate code into methods.

#### 1.0.1

 * Refactor plugin to use WP Ajax API & WP HTTP API.

#### 1.0

 * Initial Release

## 中繼資料

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

## 評分

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

[Your review](https://wordpress.org/support/plugin/json-rest-api-shortcode/reviews/#new-post)

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

## 參與者

 *   [ Scott Fennell ](https://profiles.wordpress.org/scofennellgmailcom/)

## 技術支援

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

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