Skip to content
0

katanakit-js / WpCapabilityMapSchema

Variable: WpCapabilityMapSchema ​

ts
const WpCapabilityMapSchema: ZodRecord<ZodString, ZodBoolean>;

Defined in: src/schemas/wordpress.schema.ts:391

Capability map as WordPress reports it: { manage_options: true, … }.

Only present with context=edit, which requires an authenticated caller holding list_users. That makes it a verification tool, never a registration one — WordPress exposes no endpoint that creates a role or attaches a capability to one.

Released under the MIT License.