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

Start free trial

Update Editor Settings

Changing the default editor changes what every author sees the next time they open a post. That makes it a different kind of edit from letting users pick their own.

editor/update-editor-settings sets both, runs the values through Classic Editor’s own validators, and reads them back afterwards — so a value Classic Editor would not accept is refused by name instead of stored and silently treated as classic.

At a glance

Abilityeditor/update-editor-settings
ToolsetClassic Editor — toolset/classic-editor
GroupClassic Editor › Editor Settings
RequiresClassic Editor, active on the site
Capabilitymanage_options
SafetyWrites data (changing the default needs confirm: true)
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Abilities Manager 0.0.34 and later

How it works

Pass editor to change the site-wide default, allow_users to turn user choice on or off, or both in one call.

Only a real change to the site default is gated. Setting the default to the value it already has, or only changing allow_users, runs without confirm.

The result lists which settings actually changed, and returns the effective settings afterwards.

Input

NameTypeRequiredWhat it is
editorstring (classic or block)NoThe site-wide default editor. Changing it requires confirm: true.
allow_usersbooleanNoWhether authors may choose their own editor and switch an individual post between them.
confirmbooleanWhen changing the defaultMust be true to change the site-wide default editor.

What comes back

NameTypeWhat it is
changedarrayThe names of the settings that actually changed. Empty when nothing did.
settingsobjectThe effective settings after the update.
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:

Make the block editor the default for everyone, but let authors switch back if they want.

It resolves to one call:

{
  "ability": "editor/update-editor-settings",
  "parameters": {
    "editor": "block",
    "allow_users": true,
    "confirm": true
  }
}

Worth knowing

  • With allow_users off there is no per-post logic at all — every post opens in the site default, whatever it remembers.
  • A no-op is reported as “No change”, not as a success that did something.
  • On multisite, a network lock on per-site settings still wins over anything set here.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading