-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
I threw some console.logs into your fetch package after tearing my hair out over acf fields not making it through the request.
Code:
api.customType().create({
title: { raw },
content: { raw },
acf: { field1, field2 },
foo: 'bar',
});
Actual fetch:
{
url: 'wp/v2/customType',
body: '{ "title":"...", "content":"...", "foo":"bar" }',
method: 'post'
}
What could be the reason for this?
wordpress-api-client/src/util.ts
Line 98 in 5588752
| delete body.acf |
Additionally, it was difficult to figure out what the create() JSON format was supposed to look like (not title:"" but title:{raw}), as there are no full examples in the docs.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels