fbpx

REST API Parameter & JSON Schema changes in WordPress 5.5

WordPress 5.5 introduces a number of new features and changes to how request and response parameters are handled, particularly around JSON Schema features.

General Support more JSON Schemas when filtering a response by context

The REST API uses context to remove fields from a response if the user does not have adequate permissions or for performance reasons. For example, in the following schema, if the user requested the resource with context=view, only the name properties would be returned.

{ “type”: “object”, “properties”: { “name”: { “type”: “string”, “context”: [ “view”, “edit” ] }, “role”: { “type”: “string”, “context”: [

This post was originally published on this site

GET UP TO $500K IN BUSINESS FUNDING

Pin It on Pinterest

Share This
Xiphos Web Marketing

FREE
VIEW