Talk

Next-Gen WordPress Permissions: Abilities API for Developers and AI

Event
WordCamp Skopje 2025
Date
18 October 2025
Length
40 min

The WordPress Abilities API gives plugins, themes and core one place to declare what they can do. Each ability has a name, a label, a description, input and output schemas and a permission callback. This talk looks at it from the side of permissions: what changes when a check can depend on the context, and not only on a role.

It compares abilities with the capabilities WordPress has always had, and then walks through examples: editing limited to a user’s own categories, access that expires, premium content tied to a subscription, the block editor, the REST API, and a way to move over gradually while current_user_can() keeps working.

The talk was given in October 2025, before WordPress 6.9 was released. For the Abilities API as it shipped, see Coding the Future: A Developer’s Guide to Registering WordPress Abilities.

What the talk covers

  • What the Abilities API is, and why WordPress needs it.
  • Abilities and capabilities: what each one is for.
  • Checks that depend on the context: the post, the user, the moment.
  • Examples: editing by category, access with an expiry date, content for subscribers.
  • Using the same checks in the block editor and on REST API routes.
  • Moving over gradually, with a fallback to the capability check.
  • Takeaways: start small, cache the expensive checks, stay compatible, and handle errors.

Slides

Links

← All talks