Skip to content
This repository has been archived by the owner on Apr 4, 2020. It is now read-only.

Multiple meta key/value pairs #13

Open
mjacobsen4DFM opened this issue Apr 27, 2016 · 2 comments
Open

Multiple meta key/value pairs #13

mjacobsen4DFM opened this issue Apr 27, 2016 · 2 comments

Comments

@mjacobsen4DFM
Copy link

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?

@SamBenson
Copy link

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

@jrevillini
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants