Blog
SavedSearch
Visit Hostlelo

WordPress 7.2 Core Abilities: What AI Tools Can Read on Your Site

WordPress 7.2 lets AI tools read content, users and settings through core abilities. Here is what they can see and how to test it safely on staging.

The short answer

WordPress 7.2 adds three read-only core abilities: core/content-query, core/users-query and core/settings-get. Each returns only what the authenticated user may already see, and settings need the manage_options capability. Plugins must opt in with show_in_abilities before their own post types or settings are exposed, so audit your plugins and test with a low-privilege user on staging.

Reading options

On this page

WordPress 7.2 adds three read-only core abilities that AI tools and other clients can call: core/content-query, core/users-query and core/settings-get. They only return what the logged-in user is already allowed to see, settings need the manage_options capability, and plugins have to opt in before their own post types or settings show up.

Here's the part that caught my attention: the official dev note says plainly, "Don't enable show_in_abilities for settings that store secrets, like API keys." That one line tells you where the real risk sits, and it isn't in core.

By the end of this guide you'll have tested the new abilities on a staging copy with a throwaway user, confirmed that a logged-out request is refused, and checked which of your plugins expose extra data.

What the 7.2 abilities actually are

Quick background first. The Abilities API arrived in WordPress 6.9 as a standard way to register and discover units of functionality, each with a name like namespace/ability-name, an input schema, an output schema and a permission check.

WordPress 7.2 adds three read abilities for everyday site data. The core dev post from 24 November 2026 describes all three.

core/content-query looks up posts and pages. You must pass a post type in where.type, and you can filter by IDs, slugs, status, author or parent. Without a status filter you only get published items, unless you ask for specific IDs or slugs.

core/users-query looks up users by IDs, slugs, usernames, roles or whether they have published posts. Emails and roles only come back for your own account and for users you're allowed to edit.

core/settings-get reads site settings such as the title and timezone. It needs manage_options, which in a normal install means an administrator.

A few details matter for real use. Filters are exact matches, so there's no text search. Results come in pages, with per_page defaulting to 10 and capped at 100.

Think of these abilities as a receptionist at the front desk. A visitor (the AI tool) asks for something, the receptionist checks the visitor's badge (the WordPress user behind the request), and hands over only the files that badge allows. The receptionist never opens a locked cabinet just because the visitor asked nicely.

Why this matters: an AI tool connected with an editor's credentials sees what that editor sees. Pick the account carefully and you've picked the AI's view of your site.

The same dev post explains that the AI Client's Prompt Builder has a using_abilities() method that passes abilities to a model as tools, using the provider set under Settings > Connectors. If you'd rather keep those features off for now, read how to disable WordPress AI features and connectors.

Before you start

Gather these before you touch anything:

  • WordPress 7.2 (a release candidate is fine) on a staging copy, never on production
  • An administrator account on that staging site
  • Shell access with WP-CLI, or at least SSH access to run grep
  • A fresh backup of the staging site, files and database
  • About 45 minutes

Heads up: Application Passwords are available by default only on sites served over HTTPS. If your staging site runs on plain HTTP, sort out a certificate first, because forcing the feature on without SSL can expose the password on the network.

At the time of writing (30 November 2026), the official 7.2 schedule page lists Release Candidate 4 for 1 December 2026 and the final release for 8 December 2026. Schedules can shift, so check that page before you plan an upgrade window. If you still need a staging copy, follow our guide to testing WordPress 7.2 on staging first.

Set up a safe test user

You want a low-privilege account for this test, so you see exactly what an AI tool with ordinary access would see. An Author role works well.

Step 1: Create the test user

Run this from your WordPress root on the staging server to create an Author called USERNAME (swap in any login you like).

wp user create USERNAME abilities-test@example.com --role=author

You should see Success: Created user followed by the new ID, plus a generated password. You won't need that login password for the API test, so don't save it anywhere.

Step 2: Create an Application Password

An Application Password is a separate password tied to one user, meant for API access over HTTP Basic Auth. It can be revoked on its own without touching the user's normal login.

In the dashboard, go to Users, open the test user's Edit User screen, and scroll to the Application Passwords section. Give it a name like abilities-test and create it.

WordPress shows the new password once, in groups of four characters. Spaces are optional when you use it.

If you prefer WP-CLI, this command creates one and prints only the password.

wp user application-password create USERNAME abilities-test --porcelain

You should see a single line with the password and nothing else. Keep it in a password manager, not a chat window or a shared doc. In every example below it appears as APP_PASSWORD_PLACEHOLDER.

Quick tip: run the next steps from your own computer or a private shell. The curl manual notes that credentials passed with -u are hidden from process listings only on systems where that works, and can still be visible for a moment.

Test the discovery route

Discovery is how a client asks "what abilities can I use here?" Every ability endpoint requires an authenticated user, so this is where your Application Password comes in.

Step 3: List the abilities your test user meets the requirements for

This call asks for abilities whose declared capabilities the Author role meets.

curl -u 'USERNAME:APP_PASSWORD_PLACEHOLDER' 'https://example.com/wp-json/wp-abilities/v1/abilities?has_required_capabilities=true'

You should see a JSON array of ability objects. Each one carries fields such as name, label, description, category and meta.annotations, and the 7.2 dev note says the declared required capabilities also appear in discovery.

Look for core/content-query and core/users-query in the list. You should not see core/settings-get, because it declares manage_options and an Author doesn't have it.

Heads up: passing this filter doesn't guarantee a run will succeed. The dev note explains that the filter skips permission callbacks, so an ability can appear in discovery and still refuse a specific request.

Step 4: Run a content query as the test user

Read-only abilities run with GET, and the input travels as URL-encoded JSON in an input query parameter. The -G flag tells curl to append data to the URL, and --data-urlencode handles the encoding for you.

curl -G -u 'USERNAME:APP_PASSWORD_PLACEHOLDER' --data-urlencode 'input={"where":{"type":"post"}}' 'https://example.com/wp-json/wp-abilities/v1/abilities/core/content-query/run'

You should get an object with an items array and a pagination object holding total and total_pages. Every post in items gets an id.

Without a status filter, drafts stay hidden. And raw title, excerpt and content come back only for posts this Author can edit, which usually means their own.

Step 5: Try to read settings as the test user

This is the call you want to fail, since an Author shouldn't read site settings.

curl -u 'USERNAME:APP_PASSWORD_PLACEHOLDER' 'https://example.com/wp-json/wp-abilities/v1/abilities/core/settings-get/run'

You should see an error object with code, message and data.status. The Abilities REST handbook lists ability_invalid_permissions as the code for a user who can't run an ability, and its example returns HTTP 403.

If this call returns your site title and timezone instead, stop and check the test user's role and any plugin that changes capabilities.

Audit which plugins expose extra data

Core only exposes posts, pages and a set of core settings by default. Anything else needs a plugin to opt in, and that's where secrets can leak.

Step 6: List your active plugins

Start with a list of what's actually running.

wp plugin list --status=active --fields=name,version

You should see a table with each active plugin's slug and version. Keep it open for the next step.

Step 7: Search the plugins folder for abilities code

This command finds every PHP file in your plugins folder that mentions the new opt-in argument.

grep -rln --include='*.php' 'show_in_abilities' "$(wp plugin path)"

You should see a list of file paths, or nothing at all. GNU grep exits with status 1 when it finds no match, so an empty result with no error is a clean answer.

This second search finds plugins that register their own abilities, which may expose data through a different door.

grep -rln --include='*.php' 'wp_register_ability' "$(wp plugin path)"

For each file that shows up, open it and check what's being exposed. Run the first search again with -n in place of -l if you want line numbers.

Why this matters: the show_in_abilities flag defaults to false and isn't inherited from public or show_in_rest. So any hit means a developer chose to expose that post type or setting.

If you find a setting that holds an API key, licence key or token, flag it to the plugin author straight away.

Step 8: Clean up the test credentials

Once you're done, revoke the Application Password. Here's the WP-CLI way to delete every Application Password for the test user.

wp user application-password delete USERNAME --all

You should see Success: Deleted all application passwords. You can also revoke it from the same Application Passwords section on the Edit User screen.

If you plan to repeat the test later, create a fresh password then. Rotating after each test means a leaked one is already dead. For a wider sweep, see our Application Passwords audit guide.

Variants

WP-CLI only

You can check discovery without curl at all. The global --user parameter runs the command as a specific user, so this prints the ability names that user meets the declared requirements for.

wp eval 'foreach ( wp_get_abilities( array( "has_required_capabilities" => true ) ) as $name => $ability ) { echo $name . PHP_EOL; }' --user=USERNAME

You should see one ability name per line. The function reference says wp_get_abilities() returns WP_Ability objects keyed by ability name, and the has_required_capabilities argument comes from the 7.2 dev note.

Plain PHP in a theme or mu-plugin

For plugin authors, the opt-in is a new show_in_abilities argument on register_post_type() and register_setting(). The 7.2 dev note says post types take a boolean, and settings take true or an array with its own name and schema.

Heads up: at the time of writing (30 November 2026), the official reference pages for register_post_type() and register_setting() don't list show_in_abilities yet. Treat the exact syntax as unsettled and follow the 7.2 developer note when you write the code.

One timing detail from that note will save you a confused hour. Exposed items are read when abilities register, so register them on init, because settings registered only on admin_init or rest_api_init may not be available.

If you're writing your own ability, the 7.2 dev note adds a required_capabilities argument. WordPress checks each listed capability with current_user_can() before your permission callback runs, and all of them must pass.

Managed hosts

Some managed hosts restrict WP-CLI, block Basic Auth headers, or disable Application Passwords. Ask your host whether Application Passwords work on staging and whether the Authorization header reaches PHP. While you're at it, ask if you can run wp and grep over SSH.

How to check it worked

You want two results: an authenticated call that returns scoped data, and an anonymous call that's refused.

Run the discovery call from Step 3 once more with your test credentials, before you revoke them.

curl -u 'USERNAME:APP_PASSWORD_PLACEHOLDER' 'https://example.com/wp-json/wp-abilities/v1/abilities'

You should see a JSON array of ability objects, each with a name such as core/content-query. An empty array or an error object means something in the setup is off; jump to Troubleshooting.

Now send the same request without credentials, and ask curl to print the HTTP status code at the end.

curl -w '\nHTTP status: %{http_code}\n' 'https://example.com/wp-json/wp-abilities/v1/abilities'

You should see an error object and no ability list. The docs say every Abilities endpoint requires an authenticated user, though they don't list the exact error text or status for this case, so expect an error response rather than a specific code.

If the anonymous call returns a list of abilities, treat it as a real problem. Something on the site (often a plugin or custom code) is granting access it shouldn't.

Troubleshooting

Error code rest_ability_not_found

Symptom: the run call returns an error with rest_ability_not_found. The handbook says this means the requested ability is not registered.

Cause: the staging site isn't on 7.2 yet, or the ability name has a typo. Fix: confirm the version you installed, then copy the name exactly from your discovery output.

Error code ability_invalid_permissions

Symptom: an error with ability_invalid_permissions. The handbook's example message reads: Ability "my-plugin/update-option" does not have necessary permission. It comes back with HTTP 403.

Cause: the user behind the Application Password lacks the capability, which is expected for core/settings-get as an Author. Fix: nothing, if that's the test you meant to run; otherwise check the user's role.

Error code ability_invalid_input

Symptom: an error with ability_invalid_input, which the 7.2 dev note says returns HTTP 400 when sanitization fails.

Cause: the input JSON doesn't match the ability's schema, for example a content query without where.type. Fix: compare your input with the shape in the core abilities dev note, and keep it URL-encoded with --data-urlencode.

Generic symptom: 401 or "not logged in" style error with correct credentials

Symptom (generic, not exact text): you pass the right username and password, yet the response says you aren't authenticated.

Cause: the site isn't on HTTPS, Application Passwords are disabled by a filter or plugin, or the server strips the Authorization header. Fix: load https://example.com/wp-json/ and look at the authentication key, which the integration guide says is empty when the request isn't over HTTPS or the feature is off.

Generic symptom: your custom post type never appears

Symptom (generic): a content query for your custom post type returns nothing or an error, while posts and pages work.

Cause: the post type hasn't opted in with show_in_abilities, or it registers too late. Fix: ask the developer to opt in only if it's safe and to register on init, as the 7.2 dev note describes.

Pro tips and security notes

Quick tip: give each AI tool its own WordPress user with the lowest role that does the job. That way the receptionist's rules work for you, and you can revoke one tool without breaking the others.

Never paste an Application Password into an AI chat or a support ticket. If you think one has leaked, revoke it right away and create a new one.

Watch the Last Used column for Application Passwords on the Edit User screen. The integration guide notes it's accurate to within 24 hours, so a recent date you can't explain is worth investigating.

If you let an AI model call abilities in a loop, the dev note recommends limiting the number of loop iterations in production. That protects your server and your AI bill.

Call a developer when your grep turns up show_in_abilities or wp_register_ability in a plugin you don't understand. The same goes for any exposed setting that looks like a key, and for an anonymous check that returns data.

The one message worth forwarding

Copy this and send it to whoever maintains your plugins:

Hi, we're preparing for WordPress 7.2, which adds core abilities that AI tools can call (core/content-query, core/users-query, core/settings-get). Could you check whether any of our plugins or custom code use show_in_abilities or wp_register_ability, list exactly which post types and settings they expose, and confirm that none of them store API keys or other secrets? The 7.2 dev note asks developers not to expose secret settings. We've tested on staging with a low-privilege user and want to confirm before we update production.

The takeaway: in 7.2 an AI tool sees exactly what its WordPress user can see, so choose that user carefully and keep an eye on what plugins opt in.

Reader questions

Can the WordPress 7.2 core abilities change or delete content?

No. The three core abilities added in 7.2 are read-only. The core dev note says read and write abilities are planned for future releases.

Will more core abilities arrive after 7.2?

Yes. The dev note says more abilities are being worked on for WordPress 7.3, and it points to a tracking issue in the WordPress/abilities repository.

Can I read only one group of settings with core/settings-get?

Yes. The ability accepts a group input of general, writing, reading or discussion, and a fields input for specific settings. With no input it returns every exposed setting.

Can a plugin override a missing-capability denial for an ability?

Yes. The 7.2 dev note says the existing wp_ability_permission_result filter still receives the permission result and can override it, including a denial caused by a missing required capability.

Can I use the core abilities from JavaScript in the block editor?

Yes. The dev note shows importing ready from @wordpress/core-abilities and calling executeAbility from @wordpress/abilities once ready resolves. The dev note says the script module depends on both packages.

Which AI provider does WordPress use when a model calls these abilities?

The AI Client uses the provider configured under Settings > Connectors. The model only sees data that the current user can access.

Sources & further reading

  1. Core Abilities for Content, Users, and Settings in WordPress 7.2 (Make WordPress Core)
  2. Abilities API updates in WordPress 7.2 (Make WordPress Core)
  3. WordPress 7.2 release page and schedule
  4. Abilities API REST API endpoints (WordPress Developer Resources)
  5. REST API Authentication (WordPress Developer Resources)
  6. Application Passwords: Integration Guide (Make WordPress Core)
  7. wp user application-password create (WP-CLI)
  8. wp_get_abilities() function reference
  9. GNU grep manual
  10. curl man page

Originally published . About our editorial updates.

Your next project deserves a better foundation.

Explore hosting built for your next chapter.

Explore hosting

Find your next answer.

Search published guides and articles.

Ctrl / ⌘ K to open · Esc to close