Custom Capabilities in WordPress for the Block Editor

As part of the migration to Blocks, the Role_Editor is now registering 2 new Roles and a custom capability. Here’s the what, why and how.

The Roles

  • Adminstrator: Stays the same, reserved for web developers
  • Front-End: Used for anyone who handles the front-end design of the site
  • Content Editor: Used for anyone who should only be updating content (e.g. Content Team, clients, RMs, etc.)

The Capability

The Role_Editor registers a “can_unlock_blocks” capability that the Gutenberg_Handler uses to determine what permissions a user has regarding block locking and which blocks are available for use.

See something inaccurate?