30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

Get Editor Settings

Classic Editor keeps two options, but what a site actually does depends on more than those options. A site that has never saved the settings has no stored value at all and still behaves as classic; on multisite, the network can lock per-site settings entirely.

editor/get-editor-settings reports the configuration in effect and the layer that decided it, so your AI works from what the site does rather than what the options table happens to hold.

At a glance

Abilityeditor/get-editor-settings
ToolsetClassic Editor — toolset/classic-editor
GroupClassic Editor › Editor Settings
RequiresClassic Editor, active on the site
Capabilitymanage_options
SafetyRead-only — changes nothing
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Abilities Manager 0.0.34 and later

How it works

It returns the site-wide default editor, whether users may choose their own, the raw stored values, the current user’s preference, and on multisite whether the network has locked per-site settings.

Pass user_id to resolve another user’s preference instead of the current one. That preference is only consulted while users are allowed to choose.

The message names the deciding layer — for example “Editor: classic (decided by the site setting)” — so the answer can be shown to a person as-is.

Input

NameTypeRequiredWhat it is
user_idintegerNoResolve the per-user preference for this user instead of the current one. Only consulted when users are allowed to choose.

What comes back

NameTypeWhat it is
settingsobjectThe effective editor, the layer that decided it, the stored values, the user preference and any network lock.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation.

Example

Ask your assistant:

Which editor are authors getting on this site, and why?

It resolves to one call:

{
  "ability": "editor/get-editor-settings",
  "parameters": {}
}

Worth knowing

  • Read this rather than the options directly — an unsaved site has no stored value but behaves as classic.
  • The per-user preference is user meta under the blog-prefixed key {prefix}classic-editor-settings, with the values classic or block.
  • On multisite the network may lock per-site settings; the result says so when it does.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading