D
Disable WP REST API Content

Disable REST/JSON for visitors (not logged in)

Disable REST/JSON for visitors (not logged in)

What it does

Disable REST/JSON for visitors (not logged in) 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.disable-rest-json-for-visitors-not-logge
{
  "ability": "disable-wp-rest-api.disable-rest-json-for-visitors-not-logge",
  "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 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
A
Add any post meta (custom field) to REST API
Disable WP REST API
Add any post meta (custom field) to REST API