Clanbite clanbite/v1

POST | PUT | PATCH /wp-json/clanbite/v1/admin/settings/(?P<option_key>[a-z0-9_]+)

POST PUT PATCH

REST: validate and save one settings bucket, returning the stored values.

Access is checked by can_manage().

ArgumentTypeDefaultDescription
option_key requiredstring

Handled by rest_save_settings()

Example

curl -X POST 'https://example.com/wp-json/clanbite/v1/admin/settings/(?P<option_key>[a-z0-9_]+)'

Defined in inc/admin/class-admin-rest.php

Changelog

VersionDescription
1.5.0Updated.