elementor/get-theme-builder-conditions returns the display conditions attached to an Elementor template.
For a Theme Builder template these decide where it renders; for a popup they decide where it can appear.
At a glance
| Ability | elementor/get-theme-builder-conditions |
| Toolset | Elementor — toolset/elementor |
| Group | Elementor › Templates & Theme Builder |
| 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
Theme Builder templates take effect through display conditions: rules saying which parts of the site a header, footer, single or archive template applies to. A template with no conditions is a template that renders nowhere.
Conditions are include and exclude rules over parts of the site: the entire site, a post type, a taxonomy term, a specific post. They combine, and Elementor resolves overlaps by specificity — a condition naming one post beats one naming the whole site.
That resolution is why “the wrong header is showing” is a common and confusing problem. Two templates both match, one wins, and neither is broken.
Reading the conditions on both is how you find out which. There is no error and nothing in the interface says “this template lost”.
A template with no conditions renders nowhere — which is the correct state for a newly created one and looks like a broken template if you expected otherwise.
Input
| Name | Type | Required | What it is |
|---|---|---|---|
template_id | integer | Yes | The template post ID. |
What comes back
| Name | Type | What it is |
|---|---|---|
conditions | array | The include and exclude rules attached to the template. |
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:
Where does this header template apply?
It resolves to one call:
{
"ability": "elementor/get-theme-builder-conditions",
"parameters": {
"template_id": 640
}
}Worth knowing
- Overlapping conditions are resolved by specificity, silently.
- “The wrong header is showing” is usually two templates both matching.
- No conditions means the template renders nowhere.
- Read-only.
Related abilities
- Update Theme Builder Conditions — change them
- List Elementor Templates — find the other template that matches
Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager
Browse the rest: Every ability, by category