How To Bulk Import wp_postmeta records in an API call?
We can use the existing meta property (see docs) to add multiple meta fields (in a JSON format) when we create a post via POST method: POST: example.com/wp-json/wp/v2/posts/ Body payload: { “title”: “My title”, “content”: “My content”, “meta”: {“myfield1″:”myvalue1”, “myfield2″:”myvalue2”} } or when we want to update a post with ID 123: POST: example.com/wp-json/wp/v2/posts/123 Body … Read more