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
| Ability | elementor/get-custom-code |
| Toolset | Elementor — toolset/elementor |
| Group | Elementor › Custom Code |
| Requires | Elementor, 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
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
| Name | Type | Required | What it is |
|---|---|---|---|
code_id | integer | Yes | The snippet ID. |
What comes back
| Name | Type | What it is |
|---|---|---|
snippet | object | The snippet with its code body, location, priority, status and conditions. |
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:
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
- Update Elementor Pro Custom Code — change it
- Delete Elementor Pro Custom Code — remove it
Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager
Browse the rest: Every ability, by category