Documentation Kenii Catalog Reference

Roles and Capabilities

Applies to 2.13.0 and later Generated from the code

The Catalog Editor role and the permission model behind every screen and route.

Roles and Capabilities

Generated from code at version 2.13.0. Do not edit by hand; run the reference generator to refresh.

Kenii ships a dedicated staff role so catalog staff never need a WordPress administrator account.

The Catalog Editor role

  • Role: kenii_catalog_editor (label “Catalog Editor”). Registered on the site: yes.
  • Capability: kenii_manage_catalog (constant KENII_CAP_MANAGE_CATALOG). Administrators also pass every check via manage_options.
  • Catalog Editors see only the Kenii admin; the core WordPress dashboard and admin bar are hidden for them.

Permission model

  • Admin routes (/kenii/v1/admin/*): allowed when kenii_can_manage_catalog() returns true, i.e. the user has kenii_manage_catalog or manage_options.
  • Public API routes (/kenii/v1/api/*): reads are authorized with an API key sent as X-Kenii-API-Key; writes still require a manage_options session.