elementor/list-custom-code lists Elementor Pro Custom Code snippets, with filters for location and status.
Requires Elementor Pro. Without it the ability reports that plainly rather than failing obscurely.
At a glance
| Ability | elementor/list-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
Custom Code is Elementor Pro’s mechanism for injecting markup and scripts into pages — analytics tags, third-party embeds, tracking pixels. Each snippet has a location, a priority and display conditions of its own.
That makes it a second place, alongside any code-snippet plugin and the theme, where arbitrary code enters the site. An audit of what a site loads that ignores Custom Code misses a whole category.
The location filter matters because it determines when a snippet runs: head, body start or body end. A script in the head blocks rendering; the same script at body end does not.
Status is the other filter worth using. Draft snippets exist and do not run, which is both the safe way to stage one and the reason somebody’s “already added” tag is not firing.
Read-only.
Input
| Name | Type | Required | What it is |
|---|---|---|---|
location | string | No | Filter by injection location. |
status | string | No | Filter by post status. |
What comes back
| Name | Type | What it is |
|---|---|---|
snippets | array | Each snippet with its title, location, priority and status. |
count | integer | How many matched. |
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 custom code is running on this site?
It resolves to one call:
{
"ability": "elementor/list-custom-code",
"parameters": {}
}Worth knowing
- A second place, besides the theme and snippet plugins, where code enters the site.
- Head-injected scripts block rendering; body-end ones do not.
- Draft snippets exist and do not run.
- Requires Elementor Pro.
Related abilities
- Get Elementor Pro Custom Code — read the code itself
- Create Elementor Pro Custom Code — add one
Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager
Browse the rest: Every ability, by category