Skip to content
0

katanakit-js / WpRoleDefinition

Type Alias: WpRoleDefinition ​

ts
type WpRoleDefinition = z.infer<typeof WpRoleDefinitionSchema>;

Defined in: src/types/index.ts:1256

A role declaration: the PHP-free replacement for add_role().

Holds both capability vocabularies — the toolkit's namespaced capabilities (used by useCan() and the framework guards) and WordPress' own snake_case names (declared for the site, verified with useWpAuditRole).

Released under the MIT License.