The WordPress Abilities API, and how AI clients reach it

The WordPress Abilities API, in core since WordPress 6.9, lets a plugin register one thing the site can do as an ability: a name, a description, a JSON Schema for its input and output, a permission check and a callback. PHP code, the REST API and, through the MCP Adapter, AI clients can then find it and run it.

Checked on 28 November 2026 against the WordPress developer handbook, the 6.9 developer note and the MCP Adapter README, and again on 3 December 2026 against Widejoin 1.3.1, which registers its own tools through the same API.

Key points

  • An ability has a name in the form namespace/ability-name, a category, a label, a description, an execute callback and a permission callback. Input and output schemas and meta are optional, though the dev note asks for a schema whenever there is a value to pass or return.
  • Abilities are registered on the wp_abilities_api_init action, and their categories earlier, on wp_abilities_api_categories_init.
  • Nothing is exposed by default. The REST API shows an ability only when it sets meta.show_in_rest to true, and the MCP Adapter serves it to AI clients on its default server only when it is marked public.
  • The MCP Adapter is the WordPress.org plugin that turns abilities into MCP tools. Widejoin runs on it and adds tools for page builders and shop plugins, a record of each change, and rules for running other plugins' abilities.

Free plugin. It needs WordPress 6.9 or later and the MCP Adapter: 0.7.x from WordPress.org, or the 0.6.2 copy Hostinger AI bundles.

Diagram drawn by us: one ability, my-plugin/get-post-count, and three ways in. PHP: code on the same site calls wp_get_ability and execute, with no meta key needed. REST API: a logged-in user with a cookie or Application Password reaches /wp-json/wp-abilities/v1/ only if meta.show_in_rest is true; without it the ability is missing from every route. MCP Adapter: an MCP client reaches /wp-json/mcp/mcp-adapter-default-server only if meta.public or meta.mcp.public is true; without it the default server keeps the ability private. All three end at the ability, whose permission callback, current_user_can read, still decides who may run it.The same diagram stacked for a phone: the ability and its meta array first, then PHP with no gate, the REST API gated by meta.show_in_rest and the MCP Adapter's default server gated by meta.public or meta.mcp.public, each ending at my-plugin/get-post-count.
Drawn by us from the WordPress 6.9 developer note and the MCP Adapter README, read 28 November 2026: one ability and the three ways a caller reaches it. PHP needs no meta key; REST and the Adapter's default server each need their own.

What is the WordPress Abilities API?

It is a registry of what a site can do. The handbook defines an ability as "a distinct piece of functionality with a unique name following the namespace/ability-name pattern" (developer.wordpress.org, read 28 November 2026).

Before 6.9, a plugin that wanted an AI agent or another plugin to call its features had to invent its own routes and its own way to describe them. With the API, the description lives next to the code. The callback says what happens, the schemas say what goes in and what comes out, and the permission callback says who may do it.

The API was added to core in WordPress 6.9 (getting started, read 28 November 2026). It started as a feature plugin and a Composer package, wordpress/abilities-api (GitHub, read 28 November 2026). WordPress 7.0 added a JavaScript side, @wordpress/abilities, so abilities can be registered and run in the browser too (Make WordPress Core, 24 March 2026, read 28 November 2026).

If you came here to connect an AI agent rather than to write PHP, how a WordPress AI agent changes your site is the shorter read.

How do I register an ability?

In two steps. Every ability belongs to a category, and the category has to exist first. Both examples below are from the 6.9 developer note (Make WordPress Core, 10 November 2025, read 28 November 2026), trimmed for length.

add_action( 'wp_abilities_api_categories_init', 'my_plugin_register_ability_categories' );
function my_plugin_register_ability_categories() {
    wp_register_ability_category(
        'content-management',
        array(
            'label'       => __( 'Content Management', 'my-plugin' ),
            'description' => __( 'Abilities for managing and organizing content.', 'my-plugin' ),
        )
    );
}

Then the ability itself, on its own action:

add_action( 'wp_abilities_api_init', 'my_plugin_register_abilities' );
function my_plugin_register_abilities() {
    wp_register_ability(
        'my-plugin/get-post-count',
        array(
            'label'               => __( 'Get Post Count', 'my-plugin' ),
            'description'         => __( 'Retrieves the total number of published posts.', 'my-plugin' ),
            'category'            => 'content-management',
            'input_schema'        => array(
                'type'        => 'string',
                'description' => __( 'The post type to count.', 'my-plugin' ),
                'default'     => 'post',
            ),
            'output_schema'       => array(
                'type'        => 'integer',
                'description' => __( 'The number of published posts.', 'my-plugin' ),
            ),
            'execute_callback'    => 'my_plugin_get_post_count',
            'permission_callback' => function() {
                return current_user_can( 'read' );
            },
        )
    );
}

function my_plugin_get_post_count( $input ) {
    $post_type = $input ?? 'post';
    $count = wp_count_posts( $post_type );
    return (int) $count->publish;
}

Register an ability outside wp_abilities_api_init and WordPress triggers a _doing_it_wrong() notice. Names take lowercase letters, numbers, dashes and the one slash between namespace and ability, nothing else. The schemas follow a subset of JSON Schema version 4, as the developer note puts it.

Who can run an ability?

Whoever the permission callback lets through, and nobody else. The example above checks current_user_can( 'read' ), so any logged-in user with that capability may count posts. A callback that edits content should check the matching capability, such as edit_posts.

Abilities can also describe their own risk. The PHP reference (read 28 November 2026) lists three annotations: readonly, destructive and idempotent. Set them under meta, as meta.annotations. An ability that sets none makes no claim either way, because WordPress 6.9 leaves them unset, so the safe ones have to say so.

Treat annotations as a claim by the plugin that wrote them. WordPress does not check that an ability marked read only really changes nothing.

Here is the same ability with its flags set, cut to the name, the permission check and the meta array. The annotations and show_in_rest sit in meta the way core's own abilities set them (src/wp-includes/abilities.php in WordPress 6.9, read 28 November 2026), and mcp.public is the key the MCP Adapter README names (read 28 November 2026).

wp_register_ability(
    'my-plugin/get-post-count',
    array(
        // label, description, category, schemas and execute_callback as above
        'permission_callback' => function() {
            return current_user_can( 'read' );
        },
        'meta'                => array(
            'annotations'  => array(
                'readonly'    => true,
                'destructive' => false,
                'idempotent'  => true,
            ),
            'show_in_rest' => true,
            'mcp'          => array(
                'public' => true,
            ),
        ),
    )
);

With meta.show_in_rest set, the ability appears on the REST routes. With meta.mcp.public set, the Adapter's default server offers it to AI clients. Leave either out and that door stays shut, while PHP can still call the ability.

How do I run an ability from PHP or the REST API?

From PHP, fetch it and call execute(). wp_get_ability( 'my-plugin/get-post-count' ) returns the ability, or null if none is registered under that name, and its execute( $input ) returns the result or a WP_Error. wp_has_ability() and wp_get_abilities() check and list what is registered (PHP reference, read 28 November 2026).

The REST routes live under /wp-json/wp-abilities/v1/: abilities lists them, abilities/{name} describes one, abilities/{name}/run runs it, and categories lists the categories. An ability is missing from all of them unless it sets meta.show_in_rest to true, and the list, describe and categories routes need a logged-in user, by cookie or Application Password (6.9 developer note, read 28 November 2026). The run route asks only the ability's own permission callback (run controller, lines 143 to 183), so a callback that returns true lets anyone run it without logging in.

The run route takes GET for a read only ability, DELETE for one marked both destructive and idempotent, and POST for every other ability, including one with no annotations (WordPress 6.9 run controller, read 28 November 2026). The handbook's REST page gives a shorter rule that core does not follow for destructive abilities that are not idempotent.

Our example is marked readonly, so it runs with GET, and core reads input from the query string. An object input goes there as input[key]=value, such as input[post_type]=page. Here is the call with an Application Password, created under Users, Profile:

curl -u 'editor:abcd efgh ijkl mnop qrst uvwx' \
  'https://example.com/wp-json/wp-abilities/v1/abilities/my-plugin/get-post-count/run?input=page'

The body is the number the callback returned, such as 12. Drop the readonly annotation and the same call gets a 405 error, because core then expects POST with {"input": "page"} as a JSON body (run controller, lines 111 to 131 and 195 to 202).

Which abilities does WordPress 6.9 register itself?

Three, in src/wp-includes/abilities.php, on the same wp_abilities_api_init action plugins use (WordPress 6.9 source, read 28 November 2026):

  • core/get-site-info returns the site title, tagline, both URLs, admin email, charset, language and WordPress version. It needs manage_options and sets meta.show_in_rest to true.
  • core/get-environment-info returns the environment type, PHP version, database server and WordPress version. It needs manage_options and sets meta.show_in_rest to true.
  • core/get-user-info returns the logged-in user's ID, names, roles and locale. Any logged-in user may run it, and it sets meta.show_in_rest to false, so it stays off the REST routes.

All three are annotated read only, not destructive and idempotent. None sets meta.mcp.public, so on a site with the Adapter alone none of them reaches an AI client through the default server.

How do AI clients reach abilities through the MCP Adapter?

Through a second plugin. The MCP Adapter, from WordPress.org, turns abilities into MCP tools, resources and prompts that MCP clients can call (GitHub, read 28 November 2026). WordPress.org lists version 0.7.2, with 90,000 active installs, WordPress 6.9 and PHP 7.4 as its minimums (read 3 December 2026).

On its default server, the Adapter keeps every ability private until its plugin sets meta.public or meta.mcp.public to true. That server, at /wp-json/mcp/mcp-adapter-default-server, lists three tools whatever the site holds: one discovers the public abilities, one returns an ability's schema, and one runs it. A client connects over HTTP with a WordPress user and an Application Password, or over STDIO through WP-CLI.

So a fresh site with the Adapter alone serves only what its plugins chose to make public. What the WordPress MCP Adapter does on its own goes through that install step by step, and connecting ChatGPT to WordPress covers which ChatGPT plans can add a custom MCP server at all.

What happened when two copies of the Adapter met on our lab?

Some plugins ship their own copy of the Adapter inside them. Elementor 4.3.5 carries version 0.6.1 in its vendor folder, which we found in its WordPress.org ZIP on 31 October 2026.

When that older copy loaded first on our lab, Widejoin kept its MCP server off and its wp-admin notice named Elementor as the plugin that bundled it. Installing and activating the MCP Adapter plugin, 0.7.x from WordPress.org, fixed it: the plugin copy loaded in place of Elementor's, and the tools came back without an Elementor update.

A red wp-admin notice under the Dashboard heading: Activate the MCP Adapter plugin. Widejoin cannot use the older copy, MCP Adapter 0.6.1, that Elementor bundles. Still seeing this notice after you activate it? Then that copy still loads first: update Elementor, or send us its name. It ends with an Activate MCP Adapter link
The notice on our lab with Widejoin 1.2.0, 28 November 2026, when Elementor's bundled copy loaded first. Version 1.3.1 shows the same words.

Hostinger AI bundles a copy too, and it works the other way round. Its 0.6.2 loads through its own loader before any plugin, so the Adapter plugin cannot replace it. Widejoin supports 0.6.2 for that reason and runs on it as it is: on a Hostinger site with Hostinger AI active there is nothing to install. Any bundled copy from 0.6.2 up to, but not including, 0.8.0 works the same way. The Elementor integration page has the rest of what we run with Elementor.

If you write a plugin that registers abilities, depend on the Adapter plugin rather than bundling a copy. When two copies are on one site, only one of them loads, and every plugin that uses the Adapter runs on that copy's version.

Where does Widejoin fit?

Widejoin is a WordPress plugin that registers its tools as abilities and serves them to your AI client through the MCP Adapter: 221 tools in the free plugin and 86 more in the Pro add-on, counted with every supported plugin installed. If you want an agent to edit pages in your builder, run updates or fill a shop without writing an ability yourself, that is the fix we sell.

Its own abilities are marked private: meta.show_in_rest and meta.mcp.public are false, so they are not on the Adapter's default server or the REST routes. They are served only on Widejoin's own MCP endpoint, where each change runs as the agent's WordPress user and keeps a record with its before state. Most changes can be undone in one call. Connect your AI client walks through the set-up.

For abilities other plugins register, Widejoin has two free tools. widejoin-discover-abilities lists them for an administrator, with each one's annotations shown as claims. widejoin-run-ability runs one only after an administrator has classified it as read, draft, live, destructive or blocked on the Widejoin screen. Read abilities run at once. The others become a proposal an administrator approves, and an ability nobody classified never runs, whatever its annotations say.

What are the limits?

Most of these come down to version numbers and to how far you trust what a plugin says about its own abilities.

  • WordPress 6.9 or later. Sites on 6.8 have no Abilities API. Widejoin also needs PHP 8.2 to 8.4.
  • Adapter versions. Widejoin works with Adapter 0.6.2 up to 0.7.x: the 0.7.x plugin from WordPress.org, or the 0.6.2 copy Hostinger AI bundles. On 0.6.1, the copy inside Elementor 4.3.5, it keeps its server off until the Adapter plugin is active. On 0.8.0 or later, 1.0 included, it serves no tools and shows a notice until a Widejoin update supports that version.
  • No undo for other plugins' abilities. Widejoin records that it ran one, but it cannot put back what that ability changed. Approve destructive ones with that in mind.
  • Annotations are not checked. Neither WordPress nor the Adapter proves that a read only ability is read only. That is why Widejoin asks an administrator to classify each one.
  • Public means public to every client the Adapter serves. Mark an ability public only if any user who passes its permission check may run it from an AI client.

Want help wiring abilities to your agent?

Start with the free plugin on a staging copy: install the MCP Adapter, connect your client, and ask it to list what the site can do. If your plugin registers abilities and you want them reachable from Widejoin, or something on the list behaves oddly, tell us what you need.

Questions

Is the Abilities API part of WordPress core?

Yes, since WordPress 6.9. Before that it was a feature plugin and a Composer package. WordPress 7.0 added a JavaScript side, so abilities can also be registered and run in the browser.

Do I need the MCP Adapter to use abilities?

Only for AI clients. PHP code can run an ability with wp_get_ability and execute, and the REST API can run one that sets meta.show_in_rest. An MCP client needs the MCP Adapter plugin, which turns abilities into MCP tools.

Are abilities public by default?

No. An ability is hidden from the REST API until it sets meta.show_in_rest, and the MCP Adapter keeps it private on its default server until it sets meta.public or meta.mcp.public to true. Each run still goes through the ability's permission check.

Can Widejoin run abilities from other plugins?

Yes, after an administrator classifies each one. Read abilities run at once. Draft, live and destructive ones wait for an administrator to approve them, and an ability nobody classified never runs. Widejoin cannot undo what another plugin's ability did.

Point your agent at a client site today.

14 days of Pro on up to 10 sites. No card. Connect your client and ask for a page in the builder you already use.