=== CodingBunny Duplicate Post & Page ===
Contributors: codingbunny
Donate link: https://github.com/sponsors/CodingBunnyDev
Tags: duplicate post, duplicate page, clone, duplicate menu, copy
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
Stable tag: 2.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Duplicate posts, pages, custom post types and menus with one click, including custom fields, taxonomies and page builder data.

== Description ==

CodingBunny Duplicate Post & Page creates an exact copy of any post, page or custom post type in one click. The duplicate keeps the content, custom fields, taxonomies and page builder layouts of the original, so you can start a new version without rebuilding anything.

You can also duplicate navigation menus, including nested items, CSS classes and link settings.

= Where to duplicate =

* "Duplicate" link in the post, page and custom post type lists
* "Duplicate" bulk action to copy several items at once
* "Duplicate" button in the block editor and in the classic editor
* "Duplicate" link in the admin bar, also on the front end

= What can be copied =

* Title, content, excerpt, slug, date, author and password
* Featured image and attached media (files are copied, so deleting the copy never removes the original images)
* Categories, tags and any custom taxonomy
* Page template, post format and menu order
* Custom fields, including data saved by Elementor, Beaver Builder, Divi, ACF and SEO plugins
* Child pages, with their own hierarchy
* Comments, with their replies

= Settings =

* Title prefix and suffix, with a live preview
* Status of the duplicate: draft, pending review, private, published or same as the original
* Open the duplicate in the editor or stay on the list
* Choose which user roles can duplicate and on which content types

= For developers =

* `cbedp_duplicate_args` and `cbedp_new_post_data` filters to change what is duplicated
* `cbedp_excluded_meta_keys` and `cbedp_excluded_taxonomies` filters to skip specific data
* `cbedp_user_can_duplicate` filter to customize permissions
* `cbedp_after_duplicate_post`, `cbedp_duplicate_menu_item` and `cbedp_after_duplicate_menu` actions

== Installation ==

1. Install the plugin from Plugins > Add New, or upload the `coding-bunny-easy-duplicate-post` folder to `/wp-content/plugins/`.
2. Activate the plugin.
3. Go to Settings > Duplicate Post to choose what is copied and who can duplicate.

== Frequently Asked Questions ==

= How do I duplicate a post or a page? =

Hover over the item in the list and click "Duplicate". You can also select several items and choose "Duplicate" from the bulk actions, or use the "Duplicate" button inside the editor.

= Does it work with Elementor and other page builders? =

Yes. With "Custom fields and page builder data" turned on, the duplicate keeps the full layout. Elementor regenerates the CSS of the copy the first time it is viewed.

= Who can duplicate content? =

By default administrators and editors, on posts and pages. You can change both in Settings > Duplicate Post > Permissions. Users who cannot publish always get a duplicate pending review.

= Can I duplicate WooCommerce products? =

Simple products can be duplicated after enabling the Products content type. The SKU, sales counters and ratings are not copied. For variable products use the "Duplicate" feature built into WooCommerce.

= Is the duplicated menu used on my site right away? =

No. The new menu is not assigned to any theme location, so your site does not change until you assign it.

== Changelog ==

= 2.0.0 - 2026-10-01 =
* New: Plugin renamed to CodingBunny Duplicate Post & Page.
* New: Redesigned settings page in line with the other CodingBunny plugins.
* New: Copy custom fields and page builder data.
* New: Copy custom taxonomies.
* New: Bulk action to duplicate several items at once.
* New: Duplicate button in the block editor, classic editor and admin bar.
* New: "Same as the original" and "Private" status options.
* New: Live preview of the duplicate title.
* Improvement: Child pages are duplicated recursively with their hierarchy.
* Improvement: Duplicated comments keep their replies.
* Improvement: Attached media are copied as new files.
* Improvement: Duplicated menus keep item settings added by other plugins.
* Fix: The Duplicate link did not appear until the permissions were saved.
* Fix: Backslashes were removed from block content.
* Fix: Password and menu order were never copied.
* Fix: The space after the title prefix was lost when saving.
* Fix: Fatal error when the Duplicate Menu plugin was active.
* Fix: Error when duplicating a menu with an existing name.
* Fix: Deleting a duplicated attachment removed the original file.
* Fix: Uninstall did not remove the plugin settings.
* Security: Permissions are checked again when the duplicate is created.

= 1.1.2 - 2025-11-14 =
* Fix: Minor issues fixed.

= 1.1.1 - 2025-05-26 =
* Fix: Minor issues fixed.

= 1.1.0 - 2025-04-02 =
* New: Added the ability to duplicate menus.

= 1.0.2 - 2025-02-05 =
* Fix: Solved conflict with WooCommerce.

= 1.0.1 - 2025-01-30 =
* Improvement: Small fixes.

= 1.0.0 - 2025-01-25 =
* New: Initial release.
