Site Editing — OCF

Read current field values

Reads site-scoped state, or includes one item’s post-scoped fields when post_id is provided.

get/wp-json/ocf/v1/state

Request

  • Base URL: https://your-site.com
  • URL: https://your-site.com/wp-json/ocf/v1/state
  • Auth: HTTP basic

Query parameters

post_idinteger

WordPress post ID for post-scoped fields.

Response

Current OCF state

okboolean
state_versioninteger
fieldsobject
postobject

Changes

No recorded changes to this operation across all 1 revision of this API.