GET Access check: auth_require_manage
Lists the field definitions for an owner type, for the admin screens.
Handler: cb_get_definitions()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/custom-fields/{owner_type}/definitions" POST Access check: auth_require_manage
Creates a field definition for an owner type.
Handler: cb_create_definition()
No parameters declared in the route registration.
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/custom-fields/{owner_type}/definitions" src/domains/custom-fields/routes.php:111
PUT PATCH Access check: auth_require_manage
Updates a field definition.
Handler: cb_update_definition()
No parameters declared in the route registration.
curl Copycurl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/custom-fields/{owner_type}/definitions/{field_id}" DELETE Access check: auth_require_manage
Deletes a custom field definition. Pass purge_values to also delete the values already stored for it.
Handler: cb_delete_definition()
Parameters of DELETE /custom-fields/{owner_type}/definitions/{field_id} Parameter Type Required Default or allowed values purge_values boolean — false
curl Copycurl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/custom-fields/{owner_type}/definitions/{field_id}" src/domains/custom-fields/routes.php:146
POST Access check: auth_require_manage
Duplicates a field definition.
Handler: cb_duplicate_definition()
No parameters declared in the route registration.
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/custom-fields/{owner_type}/definitions/{field_id}/duplicate" src/domains/custom-fields/routes.php:180
POST Access check: auth_require_manage
Turns a field definition on or off with the enabled flag.
Handler: cb_toggle_definition()
Parameters of POST /custom-fields/{owner_type}/definitions/{field_id}/toggle Parameter Type Required Default or allowed values enabled boolean Yes —
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/custom-fields/{owner_type}/definitions/{field_id}/toggle" \
-H "Content-Type: application/json" \
-d '{"enabled": true}' src/domains/custom-fields/routes.php:190
GET Access check: auth_require_manage
Returns where a custom field definition is used.
Handler: cb_get_definition_usage()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/custom-fields/{owner_type}/definitions/{field_id}/usage" src/domains/custom-fields/routes.php:170
POST Access check: auth_require_manage
Reorders the field definitions for an owner type from a list of field ids.
Handler: cb_reorder_definitions()
Parameters of POST /custom-fields/{owner_type}/definitions/reorder Parameter Type Required Default or allowed values field_ids array Yes —
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/custom-fields/{owner_type}/definitions/reorder" \
-H "Content-Type: application/json" \
-d '{"field_ids": []}' src/domains/custom-fields/routes.php:129
GET Access check: auth_require_manage
GET /custom-fields/{owner_type}/owner — the owner type's label and placement declarations.
Handler: cb_get_owner()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/custom-fields/{owner_type}/owner" src/domains/custom-fields/routes.php:101
GET Public
Returns the public field schema for an owner type.
Handler: cb_get_schema()
Parameters of GET /custom-fields/{owner_type}/schema Parameter Type Required Default or allowed values owner_type string Yes —
curl Copycurl "https://example.com/wp-json/davo/v1/custom-fields/{owner_type}/schema" src/domains/custom-fields/routes.php:85
GET Access check: auth_require_manage
Lists the sections for an owner type.
Handler: cb_get_sections()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/custom-fields/{owner_type}/sections" POST Access check: auth_require_manage
Creates a section for an owner type.
Handler: cb_create_section()
No parameters declared in the route registration.
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/custom-fields/{owner_type}/sections" src/domains/custom-fields/routes.php:206
PUT PATCH Access check: auth_require_manage
Updates a section.
Handler: cb_update_section()
No parameters declared in the route registration.
curl Copycurl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/custom-fields/{owner_type}/sections/{section_id}" DELETE Access check: auth_require_manage
Deletes a custom field section.
Handler: cb_delete_section()
No parameters declared in the route registration.
curl Copycurl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/custom-fields/{owner_type}/sections/{section_id}" src/domains/custom-fields/routes.php:241
POST Access check: auth_require_manage
Reorders the sections for an owner type from a list of section ids.
Handler: cb_reorder_sections()
Parameters of POST /custom-fields/{owner_type}/sections/reorder Parameter Type Required Default or allowed values section_ids array Yes —
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/custom-fields/{owner_type}/sections/reorder" \
-H "Content-Type: application/json" \
-d '{"section_ids": []}' src/domains/custom-fields/routes.php:224
GET Public
Returns the available field types.
Handler: cb_get_types()
No parameters declared in the route registration.
curl Copycurl "https://example.com/wp-json/davo/v1/custom-fields/types" src/domains/custom-fields/routes.php:75