snippets/list-snippet-updates lists the snippets on this site that came from the library and have a newer version available upstream.
Nothing else on a WordPress site tells you this.
At a glance
| Ability | snippets/list-snippet-updates |
| Toolset | WPCode — toolset/wpcode |
| Group | WPCode › The Library |
| Requires | WPCode, active on the site |
| Capability | manage_options |
| Safety | Read-only — changes nothing |
| Repeatable | Idempotent — running it twice leaves the same result |
| Ships in | AcrossAI Abilities Manager 0.0.34 and later |
How it works
A library snippet is copied onto the site at install time and then never changes. It is not a plugin: there is no update notice, no version badge, nothing in the updates screen. A fix published upstream — including a security fix — simply never arrives unless somebody goes looking.
This is the going-looking. Each row reports the local version and whether the snippet is currently active, which together are enough to judge the risk: an active snippet running a superseded version is a different situation from an inactive one nobody uses.
Pulling an update overwrites the local code completely, so any local edit is lost. That is why the update is a separate, confirmed call rather than something this listing offers to do for you.
Input
This ability takes no input.
What comes back
| Name | Type | What it is |
|---|---|---|
updates | array | One row per outdated snippet: local ID, title, local version and active state. |
library_connected | boolean | Whether the site is signed in to the library. |
connect_url | string | Where to connect, when it is not. |
count | integer | How many snippets are out of date. |
success | boolean | Whether the call completed. |
message | string | A one-line summary of what happened, suitable for showing a human. |
error_code | string | Present 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:
Are any of our library snippets out of date?
It resolves to one call:
{
"ability": "snippets/list-snippet-updates",
"parameters": {}
}Worth knowing
- Library snippets never announce updates. This is the only way to find out.
- An active outdated snippet is the one to look at first.
- Updating overwrites local edits. Check whether the snippet was modified here.
Related abilities
- Update Snippet From Library — pull the new version
- Get Code Snippet — check for local edits before updating
Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager
Browse the rest: Every ability, by category