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

Start free trial

Get Elementor Pro Custom Code

elementor/get-custom-code reads a single Elementor Pro Custom Code snippet, including its code body.

Requires Elementor Pro. Without it the ability reports that plainly rather than failing obscurely.

At a glance

Abilityelementor/get-custom-code
ToolsetElementor — toolset/elementor
GroupElementor › Custom Code
RequiresElementor, active on the site
Capabilitymanage_options
SafetyRead-only — changes nothing
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Abilities Manager 0.0.34 and later

How it works

The body is what the listing deliberately leaves out, and it is what an audit actually needs. A snippet titled “Analytics” can contain anything.

Reading it is also the step before changing it. Custom Code snippets are frequently pasted from a vendor and never looked at again, and the one being edited may contain more than whoever is editing expects.

The location and conditions come with it, which together decide when and where the code runs. A snippet with no conditions runs everywhere.

Third-party tags are the common content, and they are worth periodic review for a different reason than correctness: a tracking pixel from a campaign that ended two years ago is still sending visitor data to somebody.

Read-only.

Input

NameTypeRequiredWhat it is
code_idintegerYesThe snippet ID.

What comes back

NameTypeWhat it is
snippetobjectThe snippet with its code body, location, priority, status and conditions.
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:

What is in the analytics custom code snippet?

It resolves to one call:

{
  "ability": "elementor/get-custom-code",
  "parameters": {
    "code_id": 880
  }
}

Worth knowing

  • The body is the point — the listing leaves it out.
  • A snippet with no conditions runs everywhere.
  • Old campaign pixels keep sending data long after anybody is reading it.
  • Requires Elementor Pro.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading