=== Duplicate Post ===
Contributors: snehalpancholi
Tags: duplicate, clone, copy post, copy page, post management
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
Stable tag: 1.0.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Clone any post or page as a draft with one click. Copies title, content, excerpt, all meta fields, and all taxonomy terms.

== Description ==

Duplicate Post adds a **Duplicate** row action to your WordPress admin post and page lists. Click it and you instantly get a new draft that is an exact copy of the original — ready to edit without touching the live content.

**What Gets Copied:**

* Post title (prefixed with "Copy of")
* Post content
* Post excerpt
* All post meta (custom fields, plugin meta, ACF fields, etc.)
* All taxonomy terms (categories, tags, and any custom taxonomies)

**What Is Not Copied:**

* Internal WordPress meta (`_edit_lock`, `_edit_last`, etc.)
* Comments (fresh copy, zero comments)
* Publish date (new draft gets current time)

**Settings:**

* Choose which post types support duplication (default: Posts and Pages)
* Supports any public custom post type

**Use Cases:**

* Create template posts to duplicate for similar content
* A/B test variations of a landing page
* Stage changes to a live page without editing it directly
* Quickly scaffold similar product entries

== Installation ==

1. Upload `duplicate-post` to `/wp-content/plugins/`.
2. Activate through **Plugins → Installed Plugins**.
3. Go to **Settings → Duplicate Post** to configure which post types support duplication.
4. Open **Posts → All Posts** (or Pages) and click the **Duplicate** row action under any item.

== Frequently Asked Questions ==

= Does it work with custom post types? =
Yes — go to Settings → Duplicate Post and check any registered public post type.

= Does it copy custom fields / ACF fields? =
Yes — all post meta is cloned, including ACF fields, Yoast SEO meta, and any other meta stored via `update_post_meta`.

= Where does the duplicate appear? =
You are redirected immediately to the edit screen of the new draft after duplication.

= Does it copy featured images? =
Yes — the featured image is stored as post meta (`_thumbnail_id`) and is included in the clone.

== Screenshots ==

1. The "Duplicate" row action visible beneath a post on the All Posts screen.
2. Settings page for selecting which post types support duplication.

== Changelog ==

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
