[video:4wpdev-abilities-api-course-cover.mp4]
The Abilities API is the list of what your site can do and what it allows. Most WordPress developers have put it off “for later”, next to the words AI and MCP. Meanwhile, clients already want to run their site from their favorite AI app.
In this course you go from your first wp_register_ability() to a site your client runs through an AI agent: safely, with clear permissions, and with you as the developer who services this “car”. Every module is built on real code from WordPress core, the MCP Adapter and our open source 4WP MCP Connector.
Course path
What you’ll be able to do after each module
- Overview: explain the Abilities API in a minute. What it is, how AI uses it, and what it gives you and your clients.
- Your First Ability: register your own action. Category,
wp_register_ability, schemas, callbacks, annotations. - Discover & Execute: find and call any ability. The registry, REST
wp-abilities/v1, JavaScript, WP-CLI. - MCP Protocol: HTTP & STDIO: understand who is really knocking on the site. Agent → STDIO proxy → HTTPS → WordPress.
- MCP Adapter: open abilities to AI the official way.
meta.mcp.public, tools and prompts. - MCP Server: Default vs Custom: close the second server. What the default server exposes and when you need your own.
- Access Control & Security: decide what the agent sees. Allow-list, everything off by default, capabilities,
destructive, prompt injection, audit log. - Connecting the Client: connect the client’s AI app. Application Password, Desktop Extension, JSON config, OAuth.
- Agent Instructions & Prompts: tell the agent what’s on the site. Server instructions, prompts, a
helpreference. - Abilities in Plugins & Theme: keep abilities where they belong. The owner’s contract, namespaces.
- Content Abilities: let the agent edit content safely. Page sections, autosave → review → publish, revisions.
- Testing: check everything without an agent. curl, MCP Inspector, tests from a prompt.
- Final Project: hand over a site ready for agent control. From zero to handoff to the client, your way.
How a module works
| Part | What you get |
|---|---|
| Agenda | what the module covers and the result |
| Theory | only what you need for the code |
| Trade-offs | an honest comparison of options: what’s simpler, what costs more to maintain |
| Practice | a check through WP-CLI or REST on your local site |
| Quiz | short self-check questions |
| FAQ | answers to the questions developers and clients ask |
Your path, your choice
The course doesn’t push any tools. You choose the implementation: a few lines in functions.php or an mu-plugin, your own plugin, or a ready solution. Our open source 4WP MCP Connector is just one example in the code; every lesson works without it.
Who it’s for: Junior and Middle WordPress developers, and site owners who want to know how running a site through an AI agent works.
Result: you prepare a client’s site to be run through an AI agent, and you understand what the client pays a developer for.
Stack: WordPress 6.9+ (Abilities API in core), MCP Adapter.
Outside this course
- REST API → WordPress REST API Course
- PHP → PHP for WordPress Developers