Title: REST API Meta Support
Author: Pericor
Published: <strong>Mai 26, 2020</strong>
Last modified: Mai 29, 2020

---

Search plugins

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

Nid yw’r ategyn hwn **wedi cael ei ddiweddaru ers 3 ryddhad mawr**. Efallai nad 
yw’n cael ei gynnal bellach ac efallai bod materion cydnawsedd wrth gael ei ddefnyddio
gyda fersiynau mwy diweddar o WordPress.

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

# REST API Meta Support

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

[Llwytho i lawr](https://downloads.wordpress.org/plugin/rest-api-meta-support.zip)

 * [Details](https://cy.wordpress.org/plugins/rest-api-meta-support/#description)
 * [Reviews](https://cy.wordpress.org/plugins/rest-api-meta-support/#reviews)
 * [Development](https://cy.wordpress.org/plugins/rest-api-meta-support/#developers)

 [Cefnogaeth](https://wordpress.org/support/plugin/rest-api-meta-support/)

## Disgrifiad

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/)

## Adolygiadau

![](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/) Tachwedd 30, 2020

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/) Mehefin 13, 2020

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.

 [ Read all 2 reviews ](https://wordpress.org/support/plugin/rest-api-meta-support/reviews/)

## Contributors & Developers

“REST API Meta Support” is open source software. The following people have contributed
to this plugin.

Cyfranwyr

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

[Translate “REST API Meta Support” into your language.](https://translate.wordpress.org/projects/wp-plugins/rest-api-meta-support)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/rest-api-meta-support/),
check out the [SVN repository](https://plugins.svn.wordpress.org/rest-api-meta-support/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/rest-api-meta-support/)
by [RSS](https://plugins.trac.wordpress.org/log/rest-api-meta-support/?limit=100&mode=stop_on_copy&format=rss).

## Cofnod Newid

#### 1.0

 * Initial Release

## Meta

 *  Version **1.0.0**
 *  Last updated **6 blynedd yn ôl**
 *  Active installations **7,000+**
 *  WordPress version ** 1.0 neu uwch **
 *  Tested up to **5.4.19**
 *  PHP version ** 7.0 neu uwch **
 *  Language
 * [English (US)](https://wordpress.org/plugins/rest-api-meta-support/)
 * Tags
 * [meta](https://cy.wordpress.org/plugins/tags/meta/)[rest](https://cy.wordpress.org/plugins/tags/rest/)
   [wp-api](https://cy.wordpress.org/plugins/tags/wp-api/)
 *  [Advanced View](https://cy.wordpress.org/plugins/rest-api-meta-support/advanced/)

## Graddau

 5 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/rest-api-meta-support/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/rest-api-meta-support/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/rest-api-meta-support/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/rest-api-meta-support/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/rest-api-meta-support/reviews/?filter=1)

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

[See all reviews](https://wordpress.org/support/plugin/rest-api-meta-support/reviews/)

## Cyfranwyr

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

## Cefnogaeth

Rhywbeth i’w ddweud? Angen help?

 [Gweld y fforwm cefnogi](https://wordpress.org/support/plugin/rest-api-meta-support/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.pericror.com/payment/)