Skip to content

WpRoleDefinition

katanakit-js / WpRoleDefinition

type WpRoleDefinition = z.infer<typeof WpRoleDefinitionSchema>;

Defined in: types/adapters/wordpress.ts:123

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).