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

Start free trial

Restore Elementor Template

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

Abilityelementor/restore-template
ToolsetElementor — toolset/elementor
GroupElementor › Templates & Theme Builder
RequiresElementor, active on the site
Capabilitymanage_options
SafetyWrites data
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI 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

NameTypeRequiredWhat it is
template_idintegerYesThe template post ID.

What comes back

NameTypeWhat it is
template_idintegerThe template.
restoredbooleanWhether it was restored.
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:

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 the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading