Title: REST API Meta Support
Author: Pericor
Published: <strong>2020 年 5 月 26 日</strong>
Last modified: 2020 年 5 月 29 日

---

搜尋外掛

![](https://ps.w.org/rest-api-meta-support/assets/banner-772x250.png?rev=2312004)

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

![](https://ps.w.org/rest-api-meta-support/assets/icon-256x256.png?rev=2312004)

# REST API Meta Support

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

[下載](https://downloads.wordpress.org/plugin/rest-api-meta-support.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/rest-api-meta-support/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/rest-api-meta-support/#reviews)
 * [開發資訊](https://tw.wordpress.org/plugins/rest-api-meta-support/#developers)

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

## 外掛說明

Automatically stores the meta data from the `meta` field of a wordpress REST API
posts ([/wp-json/wp/v2/posts](https://developer.wordpress.org/rest-api/reference/posts/#create-a-post))
or pages ([/wp-json/wp/v2/pages](https://developer.wordpress.org/rest-api/reference/pages/#create-a-page))
POST in the meta data associated with the created page or post using [update_post_meta](https://developer.wordpress.org/reference/functions/update_post_meta/).
The key / value information sent in the REST POST ‘meta’ object field is stored 
as both ‘key’ and ‘_key’ to support different plugin formats.
 For example, if trying
to set the YOAST SEO Plugin values dynamically when creating a page from the REST
API, you would simply add the fields to the meta field of the REST POST data when
you POST the endpoint, and the plugin values will be added to the page:

    ```
    {
    ...
      'meta': {
        'yoast_wpseo_title': "Title set from REST call"
        'yoast_wpseo_metadesc': "Meta description set from REST call"
      }
    ...
    }
    ```

Use this plugin when dynamically creating pages with the WordPress REST API to support
modifying plugin settings for pages/posts created using the REST API!

A guide on how to use this plugin to generate a page/post with plugins configured
from the REST API is [available at Pericror.](https://www.pericror.com/software/generating-pages-posts-plugins-using-wordpress-rest-api/)

Inspired as a broader alternative to [wp-api-yoast-meta.](https://github.com/ChazUK/wp-api-yoast-meta)

Compatible with the [wordpress rest api version 2.](http://v2.wp-api.org/)

## 使用者評論

![](https://secure.gravatar.com/avatar/6dd2a2c436061fc79f1a208dffdbf332e809c8e12513577a2dfc14b186750254?
s=60&d=retro&r=g)

### 󠀁[Excellent plugin](https://wordpress.org/support/topic/excellent-plugin-6522/)󠁿

 [mortgageyields](https://profiles.wordpress.org/mortgageyields/) 2020 年 11 月 
30 日

Worked immediately upon activation.

![](https://secure.gravatar.com/avatar/c8537f9af755aca2782390991805328488b5df55664920a9bb75da1feef92c1c?
s=60&d=retro&r=g)

### 󠀁[Works as Described](https://wordpress.org/support/topic/works-as-described-262/)󠁿

 [Pericor](https://profiles.wordpress.org/pericror/) 2020 年 6 月 13 日

This plugin was developed and used to generate pages with a review plugin configured
programatically using the rest API per page and works as described.

 [ 閱讀全部 2 則使用者評論 ](https://wordpress.org/support/plugin/rest-api-meta-support/reviews/)

## 參與者及開發者

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

參與者

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

[將〈REST API Meta Support〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/rest-api-meta-support)

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

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

## 變更記錄

#### 1.0

 * Initial Release

## 中繼資料

 *  版本 **1.0.0**
 *  最後更新 **6 年前**
 *  啟用安裝數 **6,000+**
 *  WordPress 版本需求 ** 1.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **5.4.21**
 *  PHP 版本需求 ** 7.0 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/rest-api-meta-support/)
 * 標籤:
 * [meta](https://tw.wordpress.org/plugins/tags/meta/)[rest](https://tw.wordpress.org/plugins/tags/rest/)
   [wp-api](https://tw.wordpress.org/plugins/tags/wp-api/)
 *  [進階檢視](https://tw.wordpress.org/plugins/rest-api-meta-support/advanced/)

## 評分

 5 星，滿分為 5 星

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

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

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

## 參與者

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

## 技術支援

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

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

## 贊助

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

 [ 贊助這個外掛 ](https://www.pericror.com/payment/)