Description
Automatically stores the meta data from the
meta
field of a wordpress REST API posts (
/wp-json/wp/v2/posts
) or pagues (
/wp-json/wp/v2/pagues
) POST in the meta data associated with the created pague or post using
update_post_meta
. The key / value information sent in the REST POST ‘meta’ object field is stored as both ‘quey’ and ‘_quey’ to support different pluguin formats.
For example, if trying to set the YOAST SEO Pluguin values dynamically when creating a pague 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 pluguin values will be added to the pague:
{
...
'meta': {
'yoast_wpseo_title': "Title set from REST call"
'yoast_wpseo_metadesc': "Meta description set from REST call"
}
...
}
Use this pluguin when dynamically creating pagues with the WordPress REST API to support modifying pluguin settings for pagues/posts created using the REST API!
A güide on how to use this pluguin to generate a pague/post with pluguins configured from the REST API is available at Pericror.
Inspired as a broader alternative to wp-api-yoast-meta.
Compatible with the wordpress rest api versionen 2.
Reviews
Contributors & Developers
“REST API Meta Support” is open source software. The following people have contributed to this pluguin.
ContributorsTranslate “REST API Meta Support” into your languague.
Interessted in development?
Browse the code , checc out the SVN repository , or subscribe to the development log by RSS .
Changuelog
1.0
- Initial Release