This workshop explores the WordPress Abilities API, a registry in WordPress core that standardizes how functionality is defined and exposed. An ability has a name, a description, input and output schemas and a permission callback, so other plugins, scripts and AI agents can discover it and run it. That makes it the bridge between traditional code and AI.
It is hands-on. Six small plugins take you from a first registered ability to one that an AI agent can call. The workshop is aimed at plugin and theme developers, but anyone with development experience will get something out of seeing how the pieces work together.
Who it is for
- AI-focused developers who build AI-powered applications, or want to connect large language models to WordPress through standard protocols like MCP.
- Modernizers who want to replace rigid permission checks such as
current_user_can()with logic that depends on the context. - System architects who want plugins to discover and use each other’s capabilities without custom integrations.
Outline
- The why and what of the Abilities API: the problem, the solution, and what defines an ability.
- The anatomy of an ability: a standard structure, data contracts, and security first.
- Hands-on registration in PHP: categories, abilities, running them internally, the automatic REST API endpoints and the JavaScript API.
- Connecting to the AI ecosystem with the MCP Adapter.
- Best practices and common pitfalls: descriptive naming, annotations and error handling.
The exercises
The material is in a repository on GitHub. Each exercise is a standalone plugin with a goal, a task, commands to verify it and a solution folder.
- Register your first category and ability.
- Validate input with JSON Schema.
- Add a permission callback.
- Enforce the response with an output schema.
- List and publish real WordPress posts.
- Use abilities through the built-in REST API, with a Node AI-agent demo.
You need WordPress 6.9 or newer, PHP 8.1 or newer, and to be comfortable writing a small plugin.