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

---

Search plugins

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

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

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

# REST API Meta Support

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

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

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

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

## Description

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

## Reviews

![](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/) Du 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/) Metheven 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.

Contributors

 *   [ 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).

## Changelog

#### 1.0

 * Initial Release

## Meta

 *  Version **1.0.0**
 *  Last updated **6 years ago**
 *  Active installations **7,000+**
 *  WordPress version ** 1.0 or higher **
 *  Tested up to **5.4.19**
 *  PHP version ** 7.0 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/rest-api-meta-support/)
 * Tags
 * [meta](https://cor.wordpress.org/plugins/tags/meta/)[rest](https://cor.wordpress.org/plugins/tags/rest/)
   [wp-api](https://cor.wordpress.org/plugins/tags/wp-api/)
 *  [Advanced View](https://cor.wordpress.org/plugins/rest-api-meta-support/advanced/)

## Ratings

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

## Contributors

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

## Support

Got something to say? Need help?

 [View support forum](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/)