Hands-on workshop materials for WordCamp Porto 2026. Six self-contained WordPress plugins that walk you through the WP 6.9+ Abilities API end-to-end: registry, input/output schemas, permission callbacks, real data, and AI/MCP-style discovery.
- WordPress 6.9 or newer
- PHP 8.1+
- Comfortable writing a small WordPress plugin (you can read PHP, register hooks, and use the WP REST API).
- Stand up a local WP 6.9+ site — see
SETUP.md. - Open
exercises/01-hello-ability/README.mdand follow along. - Work through the six exercises in order. Each one introduces one concept from the slide deck.
Work through these in order. Each is a standalone, installable WordPress plugin in its own folder.
| # | Folder | Concept |
|---|---|---|
| 01 | exercises/01-hello-ability |
Register your first category and ability |
| 02 | exercises/02-input-schema |
Gate 1: validate input with JSON Schema |
| 03 | exercises/03-permission-gate |
Gate 2: declarative permission_callback |
| 04 | exercises/04-output-schema |
Gate 3: enforce the response contract |
| 05 | exercises/05-real-data-ability |
List and publish real WordPress posts |
| 06 | exercises/06-rest-and-ai-tool |
Consume abilities via the built-in REST API + Node AI-agent demo |
Each exercise has a README.md with the goal, the task, verification commands, and a solution/ subfolder if you get stuck.
A condensed, verified reference of the Abilities API surface used across all exercises lives at docs/api-reference.md. Use it as a cheat sheet during the workshop.
GPL-2.0-or-later. See LICENSE.
Workshop authored by Uros Tasic (@wputasic) for WordCamp Porto 2026.