{"id":334370,"date":"2026-07-09T05:37:11","date_gmt":"2026-07-09T05:37:11","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/save-as-draft\/"},"modified":"2026-07-09T06:13:13","modified_gmt":"2026-07-09T06:13:13","slug":"clone-post-unsaved-changes","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/clone-post-unsaved-changes\/","author":13267134,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.1","stable_tag":"1.0.1","tested":"7.0.1","requires":"6.6","requires_php":"7.4","requires_plugins":null,"header_name":"Clone Post with Unsaved Changes to a Draft","header_author":"Alimuzzaman Alim","header_description":"Adds a \"Save As\" button to the block editor that clones the current post or page into a new draft.","assets_banners_color":"7b74ec","last_updated":"2026-07-09 06:13:13","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/clone-post-unsaved-changes\/","header_author_uri":"https:\/\/profiles.wordpress.org\/alimuzzamanalim\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":53,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"alimuzzamanalim","date":"2026-07-09 05:37:03"},"1.0.1":{"tag":"1.0.1","author":"alimuzzamanalim","date":"2026-07-09 06:13:13"}},"upgrade_notice":{"1.0.1":"<p>Minor styling fix for sidebar button layout.<\/p>","1.0.0":"<p>Initial release.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3601000,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3601000,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256},"icon.svg":{"filename":"icon.svg","revision":3601000,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3601000,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3601000,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250},"banner.svg":{"filename":"banner.svg","revision":3601000,"resolution":false,"location":"assets","locale":false}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3601024,"resolution":"1","location":"assets","locale":"","width":1440,"height":900},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3601024,"resolution":"2","location":"assets","locale":"","width":1440,"height":900},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3601024,"resolution":"3","location":"assets","locale":"","width":1440,"height":900}},"screenshots":{"1":"The Save As button in the block editor toolbar.","2":"The Save As dialog with title, \"don't ask\", and visibility options.","3":"The Save As action in the post sidebar."}},"plugin_section":[],"plugin_tags":[2814,2738,4665,24939,23177],"plugin_category":[],"plugin_contributors":[83509],"plugin_business_model":[],"class_list":["post-334370","plugin","type-plugin","status-publish","hentry","plugin_tags-clone","plugin_tags-copy","plugin_tags-draft","plugin_tags-duplicate-page","plugin_tags-duplicate-post","plugin_contributors-alimuzzamanalim","plugin_committers-alimuzzamanalim"],"banners":{"banner":"https:\/\/ps.w.org\/clone-post-unsaved-changes\/assets\/banner-772x250.png?rev=3601000","banner_2x":"https:\/\/ps.w.org\/clone-post-unsaved-changes\/assets\/banner-1544x500.png?rev=3601000","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/clone-post-unsaved-changes\/assets\/icon.svg?rev=3601000","icon":"https:\/\/ps.w.org\/clone-post-unsaved-changes\/assets\/icon.svg?rev=3601000","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/clone-post-unsaved-changes\/assets\/screenshot-1.png?rev=3601024","caption":"The Save As button in the block editor toolbar."},{"src":"https:\/\/ps.w.org\/clone-post-unsaved-changes\/assets\/screenshot-2.png?rev=3601024","caption":"The Save As dialog with title, \"don't ask\", and visibility options."},{"src":"https:\/\/ps.w.org\/clone-post-unsaved-changes\/assets\/screenshot-3.png?rev=3601024","caption":"The Save As action in the post sidebar."}],"raw_content":"<!--section=description-->\n<p><strong>Clone Post with Unsaved Changes to a Draft<\/strong> adds a <strong>Save As<\/strong> button to the WordPress block editor. One click copies the post you are editing \u2014 including its unsaved changes \u2014 into a brand-new draft and opens it, so you can branch, version, or template your content without manually duplicating anything.<\/p>\n\n<p>It works for posts, pages, and any public custom post type, and copies the title, content, excerpt, featured image, taxonomies, discussion settings, format, template, and post meta.<\/p>\n\n<h4>Features<\/h4>\n\n<ul>\n<li><strong>Save As button<\/strong> in the editor header, next to the native <em>Save<\/em> button.<\/li>\n<li>The same action is also available in the post sidebar and the editor's <strong>\u22ee (Options)<\/strong> menu.<\/li>\n<li>A confirmation dialog lets you set the new draft's title before copying.<\/li>\n<li><strong>\"Don't ask next time\"<\/strong> turns the dialog off for instant copies \u2014 Ctrl\/\u2318-click the button to bring it back.<\/li>\n<li>Hide the toolbar and\/or sidebar button from the dialog; the <strong>\u22ee<\/strong> menu item always stays available.<\/li>\n<li>Copies are always created as <strong>drafts<\/strong>, so you never overwrite the original.<\/li>\n<li>Fully translatable (proper <code>wp_set_script_translations<\/code> integration).<\/li>\n<\/ul>\n\n<h4>How it works<\/h4>\n\n<p>The plugin reads the current editor state (including unsaved edits) and creates a new draft through the WordPress REST API, then redirects you to the new draft's edit screen. Nothing is changed on the original post.<\/p>\n\n<h3>Development<\/h3>\n\n<p>Development happens on GitHub. Bug reports, feature requests, and pull requests are welcome:<\/p>\n\n<p><a href=\"https:\/\/github.com\/alimuzzaman\/clone-post-unsaved-changes\">https:\/\/github.com\/alimuzzaman\/clone-post-unsaved-changes<\/a><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>clone-post-unsaved-changes<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory, or install the plugin through the <strong>Plugins<\/strong> screen in WordPress.<\/li>\n<li>Activate the plugin through the <strong>Plugins<\/strong> screen.<\/li>\n<li>Edit any existing post or page \u2014 the <strong>Save As<\/strong> button appears in the editor toolbar.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20it%20work%20on%20new%2C%20unsaved%20posts%3F\"><h3>Does it work on new, unsaved posts?<\/h3><\/dt>\n<dd><p>No. There is nothing to copy until a post has been saved at least once, so the button is hidden on brand-new posts.<\/p><\/dd>\n<dt id=\"does%20it%20copy%20my%20unsaved%20changes%3F\"><h3>Does it copy my unsaved changes?<\/h3><\/dt>\n<dd><p>Yes. The copy is built from the current editor state, so edits you have not saved yet are included in the new draft.<\/p><\/dd>\n<dt id=\"does%20it%20work%20with%20pages%20and%20custom%20post%20types%3F\"><h3>Does it work with pages and custom post types?<\/h3><\/dt>\n<dd><p>Yes. The REST route is derived from the current post type, so posts, pages, and public custom post types are all supported.<\/p><\/dd>\n<dt id=\"what%20gets%20copied%3F\"><h3>What gets copied?<\/h3><\/dt>\n<dd><p>Title, content, excerpt, featured image, categories and tags, discussion (comment\/ping) settings, post format, page template, and post meta exposed to the REST API.<\/p><\/dd>\n<dt id=\"i%20hid%20both%20buttons%20%E2%80%94%20how%20do%20i%20get%20them%20back%3F\"><h3>I hid both buttons \u2014 how do I get them back?<\/h3><\/dt>\n<dd><p>Open the editor's <strong>\u22ee (Options)<\/strong> menu and choose <strong>Save As<\/strong>; that item is always available. Uncheck the \"Hide\" options in the dialog.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Fix spacing of the sidebar button and update screenshots to full-page landscape views.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Duplicate or clone any post or page into a new draft \u2014 including unsaved changes \u2014 in one click, right from the block editor.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/334370","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=334370"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/alimuzzamanalim"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=334370"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=334370"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=334370"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=334370"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=334370"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=334370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}