=== Draftling – Duplicate Posts & Pages as Drafts ===
Contributors: zeronslab
Tags: duplicate post, duplicate page, custom post type, clone
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Copy posts, pages, and supported custom post types into new drafts with one Duplicate action.

== Description ==

Draftling copies WordPress posts, pages, and supported custom post types into new drafts.

It adds a Duplicate action to supported content list tables in the WordPress dashboard. The copy is always created as a draft, so you can review and edit it before publishing.

Post content, excerpts, taxonomies, featured images, parent relationships, menu order, and supported post metadata are copied to the new draft.

The plugin works with custom post types that are available in the WordPress dashboard.

== Features ==

* Copy posts as drafts.
* Copy pages as drafts.
* Copy supported custom post types.
* Copy post content and excerpts.
* Copy taxonomy relationships.
* Copy featured images.
* Copy supported post metadata.
* Preserve parent relationships and menu order.
* Use WordPress capabilities and nonce verification.
* No plugin settings or external services required.

== Installation ==

1. Upload the plugin to the `/wp-content/plugins/` directory, or install it through the WordPress plugin installer.
2. Activate Draftling through the 'Plugins' screen.
3. Open Posts, Pages, or a supported custom post type in the WordPress dashboard.
4. Hover over an item and click 'Duplicate'.
5. The copy is created as a draft and opens in a new tab, so your list stays where it was.

== Frequently Asked Questions ==

= Does it support custom post types? =

Yes. The plugin supports custom post types that are available in the WordPress dashboard.

= Is copied content published automatically? =

No. Copied content is always created as a draft.

= Does it copy taxonomies? =

Yes. The plugin copies the taxonomy relationships associated with the original content.

= Does it copy custom fields? =

The plugin copies supported post metadata, which includes custom fields stored as post metadata.

= Does uninstalling the plugin delete copied content? =

No. The plugin does not delete posts, pages, or copied content when it is uninstalled.

== Changelog ==

= 1.0.1 =
* The Duplicate link now opens the new draft in a new tab, so the content list stays where it was.

= 1.0.0 =
* Initial release.
* Added post, page, and custom post type duplication.
* Added taxonomy and post metadata duplication.
* Added capability and nonce validation.
