Roles & capabilities Lite

Three capabilities — view, process, manage — who gets them on activation, and how to hand them to a custom role safely.

The three capabilities

Slingback does not invent roles; it ships three capabilities you can grant to any role:

CapabilityGrantsTypical holder
view_slingbackRead the returns list and request details.Support staff who only answer customers.
process_slingbackApprove, deny, receive, inspect and resolve lines — the decision layer, including refund execution.Shop managers, returns agents.
manage_slingbackSettings, the setup wizard, tools (diagnostics, bundle download) and license/self-test screens.Administrators.

On activation all three are granted to Administrator and Shop manager — the WooCommerce convention that shop managers hold money powers. Nobody else sees a Returns menu.

Giving access to a custom role

  1. Open the role editor of your choice (a members/roles plugin, or WP_Roles in code).
  2. Grant view_slingback for read-only, add process_slingback to decide, and reserve manage_slingback for people who may change policy and money settings.
  3. Verify by logging in as that role: the menu appears, decisions work, and Settings stays hidden.

Why "needs admin permission" errors happen: the screen you opened requires a capability your role lacks — the exact capability is named in the message, so the administrator knows precisely what to grant. Full walkthrough: permission errors.

Separation of duties, on purpose

Every decision is recorded with the acting user in an append-only audit trail, so "who approved this?" always has an answer. Related: troubleshooting · FAQ.