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

Start free trial

Clear Snippet Errors

snippets/clear-snippet-errors clears the error WPCode recorded against a snippet, or against every snippet if you give no ID.

It clears the record. It does not fix anything.

At a glance

Abilitysnippets/clear-snippet-errors
ToolsetWPCode — toolset/wpcode
GroupWPCode › Diagnostics
RequiresWPCode, active on the site
Capabilitymanage_options
SafetyWrites data
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Abilities Manager 0.0.34 and later

Order matters

Clearing an error before fixing the code loses the only description of what went wrong. The snippet is still broken, it is still inactive, and now nothing says why.

The useful sequence is the other way round: fix the code with snippets/update-snippet, clear the error, then activate. Doing it in that order means a fresh error afterwards is unambiguously about the new code, not a leftover from before.

Clearing every error at once is for the situation where a site has accumulated stale records from snippets that were long since fixed or deleted — a tidy-up, not a repair.

Idempotent, and nothing is reactivated as a side effect. Activation stays a deliberate call.

Input

NameTypeRequiredWhat it is
idintegerNoSnippet ID. Omit to clear the recorded error for every snippet.

What comes back

NameTypeWhat it is
clearedintegerHow many error records were cleared.
cleared_idsarrayThe snippet IDs that had an error cleared.
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:

I fixed snippet 88 — clear its error.

It resolves to one call:

{
  "ability": "snippets/clear-snippet-errors",
  "parameters": {
    "id": 88
  }
}

Worth knowing

  • Does not fix the code and does not reactivate anything.
  • Clear after fixing, never before.
  • Omitting the ID clears every record on the site.
  • Idempotent.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading