A
Disable WP REST API Content

Add any post meta (custom field) to REST API

Add any post meta (custom field) to REST API

What it does

Add any post meta (custom field) to REST API It is one of the abilities the Disable WP REST API plugin exposes, so an AI agent connected to your site can run it for you.

Input schema

FieldTypeRequiredDescription
input string Required What you want this ability to do, in plain language.

Output schema

FieldTypeDescription
result string The result produced by the ability.

Permissions

The agent's WordPress user needs these capabilities. Grant only what's listed here, never a full admin account.

πŸ”’ edit_posts

How an agent calls it

Agents call this ability by name and pass the inputs it needs. A call looks roughly like this:

disable-wp-rest-api.add-any-post-meta-custom-field-to-rest-a
{
  "ability": "disable-wp-rest-api.add-any-post-meta-custom-field-to-rest-a",
  "args": { "input": ... }
}

The agent runs the ability, then hands the result back for you to review before anything is published.

Keep exploring

More Disable WP REST API abilities

All Disable WP REST API abilities β†’
D
Disable REST/JSON for visitors (not logged in)
Disable WP REST API
Disable REST/JSON for visitors (not logged in)
D
Disable any specific user routes based on role
Disable WP REST API
Disable any specific user routes based on role
C
Customize the REST error message
Disable WP REST API
Customize the REST error message
C
Customize the REST response code
Disable WP REST API
Customize the REST response code
D
Disable all JSONP shenanigans
Disable WP REST API
Disable all JSONP shenanigans