fields_create_definition
Creates a WordPress definition for field groups, post types, taxonomies, or options pages. Returns 409 if the key already exists.
Instructions
Create a definition (field group, post type, taxonomy or options page). Fails with 409 when the key exists.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Definition kind: field groups, post types, taxonomies or options pages | |
| site | Yes | Site id (see list_sites) | |
| definition | Yes | Definition object in the shape of fields_get_schema for this kind (ACF-compatible) |