{"id":121801,"date":"2020-05-26T05:30:01","date_gmt":"2020-05-26T05:30:01","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/rest-api-meta-support\/"},"modified":"2020-05-29T18:33:31","modified_gmt":"2020-05-29T18:33:31","slug":"rest-api-meta-support","status":"publish","type":"plugin","link":"https:\/\/sq-xk.wordpress.org\/plugins\/rest-api-meta-support\/","author":18007674,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.0","stable_tag":"trunk","tested":"5.4.19","requires":"1.0","requires_php":"7.0","requires_plugins":"","header_name":"REST API Meta Support","header_author":"Pericror","header_description":"Updates a page\/post meta data from the meta field of a REST POST request","assets_banners_color":"f4fcfe","last_updated":"2020-05-29 18:33:31","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.pericror.com\/payment\/","header_plugin_uri":"https:\/\/github.com\/pericror\/WPRESTAPIMetaSupport","header_author_uri":"https:\/\/github.com\/pericror","rating":5,"author_block_rating":0,"active_installs":7000,"downloads":7722,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"2"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"2312004","resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"2312004","resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":"2312004","resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":"2312004","resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[683,2299,2300],"plugin_category":[],"plugin_contributors":[186307],"plugin_business_model":[],"class_list":["post-121801","plugin","type-plugin","status-publish","hentry","plugin_tags-meta","plugin_tags-rest","plugin_tags-wp-api","plugin_contributors-pericror","plugin_committers-pericror"],"banners":{"banner":"https:\/\/ps.w.org\/rest-api-meta-support\/assets\/banner-772x250.png?rev=2312004","banner_2x":"https:\/\/ps.w.org\/rest-api-meta-support\/assets\/banner-1544x500.png?rev=2312004","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/rest-api-meta-support\/assets\/icon-128x128.png?rev=2312004","icon_2x":"https:\/\/ps.w.org\/rest-api-meta-support\/assets\/icon-256x256.png?rev=2312004","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Automatically stores the meta data from the <code>meta<\/code> field of a wordpress REST API posts (<a href=\"https:\/\/developer.wordpress.org\/rest-api\/reference\/posts\/#create-a-post\">\/wp-json\/wp\/v2\/posts<\/a>) or pages (<a href=\"https:\/\/developer.wordpress.org\/rest-api\/reference\/pages\/#create-a-page\">\/wp-json\/wp\/v2\/pages<\/a>) POST in the meta data associated with the created page or post using <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/update_post_meta\/\">update_post_meta<\/a>. The key \/ value information sent in the REST POST 'meta' object field is stored as both 'key' and '_key' to support different plugin formats.\nFor 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:<\/p>\n\n<pre><code>{\n...\n  'meta': {\n    'yoast_wpseo_title': \"Title set from REST call\"\n    'yoast_wpseo_metadesc': \"Meta description set from REST call\"\n  }\n...\n}\n<\/code><\/pre>\n\n<p>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!<\/p>\n\n<p>A guide on how to use this plugin to generate a page\/post with plugins configured from the REST API is <a href=\"https:\/\/www.pericror.com\/software\/generating-pages-posts-plugins-using-wordpress-rest-api\/\">available at Pericror.<\/a><\/p>\n\n<p>Inspired as a broader alternative to <a href=\"https:\/\/github.com\/ChazUK\/wp-api-yoast-meta\">wp-api-yoast-meta.<\/a><\/p>\n\n<p>Compatible with the <a href=\"http:\/\/v2.wp-api.org\/\">wordpress rest api version 2.<\/a><\/p>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial Release<\/li>\n<\/ul>","raw_excerpt":"Stores meta data (i.e plugin settings) from the meta field of a WP REST API posts or pages POST creation call in the created page or post meta data.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/121801","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=121801"}],"author":[{"embeddable":true,"href":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/pericror"}],"wp:attachment":[{"href":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=121801"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=121801"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=121801"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=121801"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=121801"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=121801"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}