JUBELBUILD — DEVELOPER TOOLS

Role Matrix

Feature Analysis · Control which WordPress roles can access each feature at runtime.

What the Role Matrix does

For every feature you defined in the FREE/PRO tab, the matrix shows a grid of checkboxes: each column is a WordPress role, each row a feature. A checked box means users with that role can access the feature; unchecked means access is denied. This is independent of the FREE/PRO split — a feature can be PRO-only and still be restricted to certain roles within the PRO version.

JubelBuild uses the matrix to inject role-check code during the build: [ROLE:editor,author]…[/ROLE] blocks in the PRO build, and current_user_can() guards in the FREE build for features that are available in FREE but role-restricted.

Roles in the matrix

The first block always shows the five standard WordPress roles:

  • Administrator — full site control; by convention always has access to everything.
  • Editor — can publish and manage all posts and pages.
  • Author — can publish and manage their own posts.
  • Contributor — can write posts but not publish them.
  • Subscriber — basic logged-in user, minimal capabilities.

Custom roles your plugin registers or detects (e.g. shop_manager, customer, wlm_member) appear in additional blocks below, in groups of up to six columns.

Toggles, rules & saving

  • Per-cell toggle: green checkmark = access granted, red cross = denied.
  • Column shortcuts: at the top of each role column, ✓ grants access to all features for that role, ✗ denies all — in one click.
  • Rule: every feature must have at least one role with access. Denying all roles for a feature isn't permitted — JubelBuild can't generate valid role-check code otherwise.
  • Auto-save: switching away from the Role Matrix saves your assignments automatically; you can also Save manually any time.

Tips: keep Administrator checked for every feature so admins are never locked out. A FREE+PRO feature that is role-restricted has its role check injected in both builds; a PRO-only feature only has role checks in the PRO build — it doesn't exist in FREE at all.

Access control, baked into the build

Tick the boxes — JubelBuild injects the role checks into your FREE and PRO code for you.

s2Member®
Nach oben scrollen