elementor/restore-template restores a trashed Elementor template.
It comes back with its display conditions intact, which means it starts applying again immediately.
At a glance
| Ability | elementor/restore-template |
| Toolset | Elementor — toolset/elementor |
| Group | Elementor › Templates & Theme Builder |
| Requires | Elementor, active on the site |
| Capability | manage_options |
| Safety | Writes data |
| Repeatable | Idempotent — running it twice leaves the same result |
| Ships in | AcrossAI Abilities Manager 0.0.34 and later |
How it works
Trashing a template does not clear its conditions, so restoring does not need to rebuild them. The template returns to exactly the state it left.
That includes claiming whatever parts of the site its conditions cover — which may now be claimed by something else created since. Two templates matching the same target is resolved by Elementor, not by you, and the losing one silently does nothing.
So after restoring a Theme Builder template, checking the conditions on both it and anything created in the meantime is worth the call.
For section and page templates there is no such interaction. They apply where they are inserted and restoring one is uneventful.
Idempotent: restoring an untrashed template is a no-op.
Input
| Name | Type | Required | What it is |
|---|---|---|---|
template_id | integer | Yes | The template post ID. |
What comes back
| Name | Type | What it is |
|---|---|---|
template_id | integer | The template. |
restored | boolean | Whether it was restored. |
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:
Bring back the header template I trashed.
It resolves to one call:
{
"ability": "elementor/restore-template",
"parameters": {
"template_id": 640
}
}Worth knowing
- Conditions come back with it, so it starts applying again immediately.
- Check for conflicts with anything created while it was trashed.
- Uneventful for section and page templates.
- Idempotent.
Related abilities
- Get Theme Builder Conditions — check for conflicts
- List Elementor Templates — find trashed templates
Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager
Browse the rest: Every ability, by category