"So why do I need a developer now?"
The client saw that the site can be run from an AI app and asks directly: if the agent publishes, edits and answers on its own, what am I paying a developer for?
The answer is like with a car. The client drives wherever and whenever they want. But someone has to build the car, set up the brakes, fit the alarm and service it regularly. The Abilities API gives the client the steering wheel. The developer makes sure the car drives safely.
Agenda
In 10 minutes you will:
- state the main benefit of the Abilities API for the client;
- break the developer's work down with the "car and service" model;
- name the risks and how to control them;
- watch the full path "from an empty list to an AI connector" on video.
Theory
The main thing for the client
The client runs their favorite WordPress site from their favorite AI app. No new admin, no "click here, then there" instructions: the person writes what they want, and the site does only what it's allowed to.
Benefits for the developer
- One standard instead of a custom API in every plugin.
- The site says what it can do: the registry is living documentation.
- Input is validated against the schema before your code runs.
- Permissions in one place:
permission_callbackright next to the action. - One list for PHP, REST, JavaScript and MCP.
The "car and service" model
flowchart LR
subgraph CL["Client · steering wheel"]
A1["writes a request<br/>in the AI app"]
A2["publishes, edits,<br/>asks for stats"]
end
subgraph DEV["Developer · service"]
D1["which abilities are needed"]
D2["schemas and permissions"]
D3["allow-list, passwords,<br/>agent instructions"]
D4["tests, log, updates"]
end
DEV -- "a safe site" --> CL
CL -- "new needs" --> DEV
| The client does it themselves | The developer does and maintains |
|---|---|
| asks the agent to publish, update, find | decides which actions can be given to an agent at all |
| uses their own AI app | sets up the server, allow-list, a separate password |
| gets the result in minutes | writes schemas, permissions, instructions, tests |
| asks for a new capability | adds a new ability and tests it |
Risks and how to control them
| Risk | What can happen | Control |
|---|---|---|
A weak permission_callback on writes | the agent changes what it shouldn't | permissions on every action, never __return_true for writes |
meta.public set by a plugin | an ability is open without your decision | default server off, allow-list |
| An ability that's too broad | "do everything" in one call | small actions with clear schemas |
| Destructive actions | deletion without confirmation | destructive + "ask every time" in the client, revisions |
| Prompt injection through content | text on the site "commands" the agent | module 7 of the course |
All these risks are easy to control when a developer takes care of them. That is exactly the service the client pays for.
A practical case
The module video shows the full path on our 4WP MCP Connector: from an empty list to a working connection.
- Everything is off by default: the administrator turns on only what the AI app may use.
- One password, one file: the site address and login are already in the connector.
- Double-click, paste the password, Install.
- The AI app knows what the site can do. Only what you allowed.
[video:https://youtu.be/hQJSdYiwFQU]
Code / commands
# How many abilities your site already has, and whose they are
wp eval '$c = []; foreach ( wp_get_abilities() as $a ) { $ns = strtok( $a->get_name(), "/" ); $c[ $ns ] = ( $c[ $ns ] ?? 0 ) + 1; } print_r( $c );'
This is your first argument in the conversation with the client: "here is what your site can already do, and here is what of it we'll give the agent".
Trade-offs
| Approach to the client | Pros | Cons | When |
|---|---|---|---|
| "Here's wp-admin, learn it" | zero work now | the client writes to you about every little thing | sites without active content |
| AI access "to everything" | the wow effect | the risks from the table above | never in production |
| Well-designed abilities + service | the client is independent, the site is safe | needs designing and maintaining | active sites, long relationships with the client |
Common mistakes
| Symptom | Cause | Fix |
|---|---|---|
| The client got an admin password for the AI | "so everything works" | a separate user and an Application Password with the needed permissions |
| The agent can't do a simple action | the ability isn't turned on, or no permissions | check the allow-list and capabilities |
| The client doesn't understand what's allowed | no instructions and no help | module 9: agent instructions |
| "AI will replace the developer" | confusing the steering wheel with the service | the "car and service" model |
Practice
- Count your site's abilities by namespace with the command above.
- For an imaginary client, make a two-column table: "the agent may" / "the agent may not".
- Watch the module video and note at which step abilities are turned on.
Result: you have a first plan for the conversation with a client about AI access to their site.
Quiz
- What is the main benefit of the Abilities API for the client?
- What does the developer do in the "car and service" model?
- Name two risks of AI access and how to control them.
- Why shouldn't the client connect the AI app with an administrator password?
<details> <summary>Answers</summary>
- Running their site from their own AI app.
- Chooses the abilities, writes schemas and permissions, sets up the server, allow-list, passwords, instructions, tests and maintains.
- For example: a weak
permission_callback→ permissions on every action; destructive actions →destructive+ confirmation and revisions. - The agent would get all administrator permissions; a separate user with the needed permissions is safer.
</details>
FAQ
No. The agent is the steering wheel in the client's hands. Someone has to design which actions are available, with which permissions, and maintain it. That's the developer's job.
Only what you opened as abilities and allowed for their user: publish, edit, get site information, depending on the setup.
Yes, if access is limited: a separate password, the default server off, an allow-list, permissions on every action, confirmation for destructive actions and a call log.
With the list: which abilities already exist, and which of them the client really needs. Then module 2 of the course: your own ability.