wp-api-meta-endpoints icon indicating copy to clipboard operation
wp-api-meta-endpoints copied to clipboard

Multiple meta key/value pairs

Open mjacobsen4DFM opened this issue 9 years ago • 2 comments

To avoid multiple posts, is there any way to send multiple meta key/value pairs through the endpoint? I expect something like this to work: [ { "key":"test_key", "value":"test value here" }, { "key":"test_key2", "value":"test2 value here" } ]

No joy. I get "Missing parameter(s): key" Is my JSON malformed for the request, or is it even possible?

mjacobsen4DFM avatar Apr 27 '16 20:04 mjacobsen4DFM

Did you get any luck with this? Having the same issue...

SamBenson avatar Jan 10 '17 00:01 SamBenson

Same here. Based on https://developer.wordpress.org/rest-api/reference/users/#create-a-user I believed that I could pass a json object of key/value pairs into the meta argument, but it yielded no saved usermeta in the database as of today with WP 4.8.2.

jrevillini avatar Sep 23 '17 13:09 jrevillini