How to Troubleshoot WordPress Plugin and Theme Conflicts
When a WordPress site breaks after you change a plugin or theme, two extensions may be clashing with each other. A conflict…
WordPress developers use the Abilities API to describe site functions in a consistent way and control how other code runs them. You register an ability as a WordPress function, such as one that retrieves a post’s title or updates a setting. WordPress 6.9 introduced the API, and plugins and other components can use it to register their own abilities.
The API does not connect WordPress to an AI model on its own. Instead, it gives other code a catalog of functions to discover and call. An AI client needs a separate integration, such as the WordPress MCP Adapter, to reach the abilities you choose to expose. When you keep those two roles separate, you can decide which functions to register, who can run them, and what an AI tool can reach.
When a plugin registers an ability, it supplies a name, a description, a category, and an execution callback that holds the PHP code to run. It can also define input and output schemas. A schema describes the data an ability expects or returns, such as an integer post ID or a response containing a title. WordPress uses those schemas to document the data and verify that it matches the expected format, though a schema never grants permission to access that data.
For example, a plugin could register my-plugin/get-post-summary to return a post’s title and status. The plugin declares the expected post_id in its input schema, and the execution callback fetches the post and builds the response. A separate permission callback checks whether the current WordPress user can read that specific post.
Here is a simplified version of that pattern:
add_action(
'wp_abilities_api_init',
static function () {
wp_register_ability(
'my-plugin/get-post-summary',
array(
'label' => __( 'Get post summary', 'my-plugin' ),
'description' => __( 'Returns the title and status of a post the current user can read.', 'my-plugin' ),
'category' => 'post-tools',
'input_schema' => array(
'type' => 'object',
'properties' => array(
'post_id' => array( 'type' => 'integer' ),
),
'required' => array( 'post_id' ),
'additionalProperties' => false,
),
'output_schema' => array(
'type' => 'object',
'properties' => array(
'title' => array( 'type' => 'string' ),
'status' => array( 'type' => 'string' ),
),
),
'execute_callback' => static function ( $input ) {
$post = get_post( $input['post_id'] );
if ( ! $post ) {
return new WP_Error( 'post_not_found', 'Post not found.' );
}
return array(
'title' => get_the_title( $post ),
'status' => get_post_status( $post ),
);
},
'permission_callback' => static function ( $input ) {
return current_user_can( 'read_post', $input['post_id'] );
},
'meta' => array(
'show_in_rest' => true,
'annotations' => array(
'readonly' => true,
'destructive' => false,
),
),
)
);
}
);
This example assumes you have already registered the post-tools category. The Abilities API handbook and PHP reference cover the registration requirements and available fields, so follow the reference for the WordPress version your code targets.
Each part of this example handles a distinct job. The schema defines the expected input, the permission callback checks whether the user can read the requested post, and show_in_rest turns on REST exposure. Your PHP code can still call an ability internally even if you leave REST exposure turned off.
The Abilities API registers and runs WordPress functions. The Model Context Protocol (MCP) is a set of rules that lets compatible AI clients find tools, call them, and read other information they need. The WordPress MCP Adapter bridges the two by translating selected WordPress abilities into MCP tools.
When you register an ability, AI clients do not automatically see it. WordPress does not connect to an AI client on its own either. You have to set up an integration and pick which abilities it exposes. The WordPress MCP Adapter overview explains how this works, including how the adapter can expose read-only data as resources.
For your first integration, register and test a single read-only ability, then configure the adapter to expose it. Connect an MCP-compatible client using a WordPress account that holds only the permissions required for that ability. Check what the client can discover and run before you let it touch a production site.
A plugin can expose an ability through WordPress’s REST API by setting show_in_rest to true. REST requests require an authenticated user, and WordPress runs the ability’s permission checks when that user calls it. The collection endpoint is GET /wp-abilities/v1/abilities. You can check the REST endpoint documentation for the full list of discovery and execution routes, supported authentication methods, and pagination details.
The REST endpoint that lists abilities returns 50 abilities per page by default and accepts up to 100 per page. If a site registers more abilities than that, the client must request additional pages to see the rest.
You decide separately whether to expose an ability over REST and whether to expose it through MCP. If you turn on show_in_rest, WordPress does not automatically publish that ability to an MCP client, and configuring the MCP adapter does not turn on REST access. Check the current adapter documentation for its configuration and exposure rules. Adapter setup details have changed over time, and its release notes list breaking changes, so older setup examples may not match the version you have installed.
An AI client acts with the permissions of the WordPress user whose credentials it sends. If that user can edit posts or change site settings, the client can do the same when it calls an ability. Give the client a dedicated account or role with only the capabilities its tasks require, and do not expose powerful abilities to clients you have not tested.
Check permissions for the exact item the caller requests. An ability that reads a post should verify that the current user can read that specific post, as the example above does. A general capability check alone may not tell you whether the user is allowed to access the post named in the input.
Annotations such as readonly and destructive describe how an ability behaves. They help integrations understand what an ability will do, but they do not replace authorization or make a callback safe. Make sure your callback does what its annotations promise, and log calls and failures so you can investigate unexpected activity.
WordPress 6.9 introduced the Abilities API. As of November 26, 2026, WordPress 7.2 is still in its release-candidate phase. The core team released RC3 on November 24, and the project schedule lists December 8 as the planned release date. Treat 7.2-specific behavior as prerelease until the final version ships.
The WordPress 7.2 developer note outlines updates to required capabilities, input preparation, and JSON output. Its guidance on required capabilities differs from the current PHP reference. Follow the documentation for the WordPress version you support, and keep an explicit permission check whenever access depends on the ability’s input, such as a specific post ID.
Test both the ability itself and the integration that exposes it. You can use a WordPress plugin testing strategy to verify how your code handles valid inputs, missing posts, and insufficient permissions, as well as what the AI client can see.
Give Vroni a GitHub issue, bug report, spec, or rough idea. It reads the repo, plans the change, writes code, runs checks, and works toward a review-ready pull request.
Take a look at vroni.com