Admin settings endpoint for enabling and disabling bits.
Namespace: prc-block-bits/v1
Source: includes/class-settings.php
Auth summary
| Access | Routes |
|---|---|
manage_options | GET / POST /settings |
GET /settings
Returns current settings and the registered bit catalog for the Settings UI.
Request
GET
/wp-json/prc-block-bits/v1/settings
HeadersKey: value
Accept application/json
Response
200 OK
Response headers
Key: value
BodyJSON
{
"settings": {
"disabled_bits": []
},
"bits": [
{
"name": "prc-block-bits/icon-span",
"label": "Icon",
"category": ""
}
]
}POST /settings
Saves the opt-out list in option prc_block_bits_settings.
Reference
1 field
Request body
Typed options, defaults, and constraints in one scannable reference.
-
disabled_bitsarray required -
Fully qualified bit names to disable site-wide.
No fields match this filter.
Response shape matches GET: { settings, bits }.