Duplicate Page/Post is a WordPress ability from Premium Addons for Elementor — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Duplicate Page/Post

Write

Duplicate an existing page or post as a new draft, copying its content, taxonomies, and meta.

Requires the Premium Addons for Elementor plugin on WordPress 7.0+ for the Abilities API (abilities are registered only when the wp_register_ability() function exists). Dashboard, settings and site-inventory abilities (get-id-by-title, list-pages, list-templates, get-global-settings, get-settings, update-setting, scan-usage, disable-unused-widgets, clear-dynamic-assets, subscribe-newsletter) require the caller hold the 'manage_options' capability. premium-addons/create-page requires 'edit_pages'. premium-addons/get-widget-schema, premium-addons/get-addon-schema, premium-addons/list-available-elements, premium-addons/list-pa-addons, premium-addons/detect-atomic-support, premium-addons/check-elementor-element and premium-addons/create-elementor-template require 'edit_posts'. premium-addons/get-page-structure, premium-addons/get-element-settings, premium-addons/add-flexbox, premium-addons/add-container, premium-addons/update-element-settings, premium-addons/insert-widget, premium-addons/remove-element, premium-addons/change-post-status and premium-addons/duplicate-post require 'edit_post' on the target post_id, and deny requests for a nonexistent post_id outright.

What it does

This ability duplicates an existing page or post as a new draft owned by the current user, copying its content, taxonomies, and meta. It uses the same Premium Addons Duplicator service the dashboard provides. The copy is always created as draft, regardless of the original post's status. It is not idempotent because each call creates a brand-new duplicate with a new post ID. The resulting object includes the new post ID, title, status (always draft), and the Elementor editor URL.

See it in action

You ask your AI assistant

"Duplicate the page titled 'Homepage' so I can experiment with a redesign without touching the live page."

Inputs

Name Type Required Description
post_id integer Yes The ID of the source page or post to duplicate. The copy is created as a draft owned by the current user.

Returns

An object with post_id (the new duplicated draft's ID), title, status (always draft), and edit_url (the Elementor editor URL for the new draft).

Permission

The current user must have the 'edit_post' capability for the source post_id, checked via Helpers::can_edit_input_post(); requests for a nonexistent post_id are denied outright.

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.