snippets/install-shared-snippet installs a snippet somebody shared with you by WPCode library link, using the share code from that link. It refuses without confirm: true.
As with every library install, it lands inactive.
At a glance
| Ability | snippets/install-shared-snippet |
| Toolset | WPCode — toolset/wpcode |
| Group | WPCode › The Library |
| Requires | WPCode, active on the site |
| Capability | manage_options |
| Safety | Writes data |
| Repeatable | Not idempotent — each call changes the row set, so re-running is not a no-op |
| Ships in | AcrossAI Abilities Manager 0.0.34 and later |
This one came from a person
A shared snippet is code from a person, not from the curated library — the share code is simply a pointer to whatever they uploaded. It lands inactive, so nothing runs until somebody switches it on, but the review before that step matters more here than it does for a library snippet.
How it works
The share code is the identifying part of a WPCode library share link. Somebody uploads a snippet, gets a link, sends it to you; this is the install for the other end of that.
The distinction from the curated library is worth holding on to. A library snippet has been through WPCode’s own process; a shared snippet has been through nothing at all. It is whatever the person on the other end wrote, which may be excellent and may be a copy-paste from a forum.
The site must be signed in to the library for the share code to resolve.
Inactive on arrival, same as everything else from the library. Review the code with snippets/get-snippet before activating.
Input
| Name | Type | Required | What it is |
|---|---|---|---|
hash | string | Yes | The share code from the WPCode library link. |
confirm | boolean | Yes — must be true | The irreversibility gate. Without it the call is refused before anything is touched. |
What comes back
| Name | Type | What it is |
|---|---|---|
snippet | object | The installed snippet, inactive. |
in_cache | boolean | Whether WPCode’s loader cache holds the snippet. This, not the post status, is what decides whether it actually runs. |
safe_mode | boolean | Whether safe mode is active. When it is, no snippet runs regardless of everything else. |
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:
Install the snippet from this WPCode share link.
It resolves to one call:
{
"ability": "snippets/install-shared-snippet",
"parameters": {
"hash": "a1b2c3d4e5",
"confirm": true
}
}Worth knowing
- Inactive on arrival.
- Requires the site to be signed in to the library.
- Shared code is unreviewed. Read it before activating.
- Not idempotent.
Related abilities
- Get Code Snippet — read the code that arrived
- Activate Code Snippet — switch it on once reviewed
Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager
Browse the rest: Every ability, by category