跳到内容

Clone Post with Unsaved Changes to a Draft

v1.0.3

Alimuzzaman Alim · 2026年7月9日 上架

Duplicate or clone any post or page into a new draft — including unsaved changes — in one click, right from the block editor.

正在使用
10 以下
评分
暂无
累计下载
357
最近更新
2026年8月24日
需要 WordPress 6.6+已测试到 7.1.5PHP 7.4+

截图

The Save As button in the block editor toolbar.
The Save As button in the block editor toolbar.
The Save As dialog with title, "don't ask", and visibility options.
The Save As dialog with title, "don't ask", and visibility options.
The Save As action in the post sidebar.
The Save As action in the post sidebar.

Clone Post with Unsaved Changes to a Draft adds a Save As button to the WordPress block editor. One click copies the post you are editing — including its unsaved changes — into a brand-new draft and opens it, so you can branch, version, or template your content without manually duplicating anything.

It works with supported Gutenberg posts, pages, and public REST-enabled custom post types. The plugin copies saved core fields and registered taxonomies, then applies supported unsaved block-editor changes. Copies are always drafts. Elementor 4.2.3 post/page documents have a separate, version-pinned adapter that mirrors Elementor’s persistent document defaults, captures the unsaved editor snapshot before any save, verifies that Elementor persisted the complete snapshot, and writes it only to the new draft; other versions and document types fail closed. WooCommerce products use WooCommerce’s native duplicate workflow only when a block-editor integration invokes the server adapter; classic Woo product screens, product variations, and unsaved Woo-specific fields remain outside this contract.

Features

  • Save As button in the editor header, next to the native Save button.
  • The same action is also available in the post sidebar and the editor’s ⋮ (Options) menu.
  • A confirmation dialog lets you set the new draft’s title before copying.
  • New draft titles end in (Copy), ready for you to adjust.
  • “Don’t ask next time” turns the dialog off for instant copies — Ctrl/⌘-click the button to bring it back.
  • Press Ctrl/⌘ + Alt + S to open Save As without reaching for the mouse.
  • Hide the toolbar and/or sidebar button from the dialog; the ⋮ menu item always stays available.
  • Copies are always created as drafts, so you never overwrite the original.
  • Uses a dedicated authenticated endpoint with capability checks and request-id idempotency.
  • Fully translatable (proper wp_set_script_translations integration).

How it works

The plugin sends a constrained snapshot of the current block-editor state to its own authenticated endpoint. The server reads the saved source post, creates a draft for the current user, then applies supported edits and redirects you to the new draft. Nothing is changed on the original post.

Development

Development happens on GitHub. Bug reports, feature requests, and pull requests are welcome:

https://github.com/alimuzzaman/clone-post-unsaved-changes

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums