Guide

Block Bits REST API

Admin settings endpoint for enabling and disabling bits.

Namespace: prc-block-bits/v1
Source: includes/class-settings.php

Auth summary

AccessRoutes
manage_optionsGET / 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
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

Request body

Typed options, defaults, and constraints in one scannable reference.
1 field
disabled_bits array required
Fully qualified bit names to disable site-wide.

Response shape matches GET: { settings, bits }.

Was this helpful?