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

Start free trial

Install Shared Snippet

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

Abilitysnippets/install-shared-snippet
ToolsetWPCode — toolset/wpcode
GroupWPCode › The Library
RequiresWPCode, active on the site
Capabilitymanage_options
SafetyWrites data
RepeatableNot idempotent — each call changes the row set, so re-running is not a no-op
Ships inAcrossAI 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

NameTypeRequiredWhat it is
hashstringYesThe share code from the WPCode library link.
confirmbooleanYes — must be trueThe irreversibility gate. Without it the call is refused before anything is touched.

What comes back

NameTypeWhat it is
snippetobjectThe installed snippet, inactive.
in_cachebooleanWhether WPCode’s loader cache holds the snippet. This, not the post status, is what decides whether it actually runs.
safe_modebooleanWhether safe mode is active. When it is, no snippet runs regardless of everything else.
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:

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 the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading