=== Rathsh Duplicate Page ===
Contributors: rathsh
Tags: duplicate, clone, copy, page, post
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Duplicate posts, pages, or any custom post types in one click with flexible status options and role-based access.

== Description ==

Rathsh Duplicate Page allows users to duplicate posts, pages, or any custom post types in one click with flexible status options and role-based access control. It's lightweight, clean, and fully conflict-free with other WordPress plugins.

= Core Features =

* **One-Click Duplication** - Duplicate Posts, Pages, and Custom Post Types instantly
* **Flexible Post Status Options** - Save duplicated content as Draft, Pending, Private, or Published
* **Role-Based Access Control** - Admin can choose which user roles can access duplicate functionality
* **Post Type Visibility** - Admin can choose which post types display the "Duplicate" link
* **Multiple Link Placement** - Choose where duplicate links appear: Post Row Actions, Admin Bar, Edit Screen
* **Comprehensive Settings** - Settings page under Settings > Duplicate Page
* **Fully No-Conflict** - Uses unique rathshdp_ prefix for all functions

= What Gets Duplicated =

* Post title (with "(Copy)" suffix)
* Post content and excerpt
* Featured image and media
* Custom fields (meta data)
* Categories, tags, and custom taxonomies
* Post format and hierarchy
* Comment and ping status

= Link Locations =

Choose where duplicate links should appear:
* **Post Row Actions** - In post/page lists when hovering
* **Admin Bar** - Always visible in top admin bar
* **Edit Screen** - In the publish meta box when editing

= Settings Options =

* **Default Status** - Choose what status duplicated posts should have
* **User Roles** - Select which roles can use the duplicate functionality
* **Post Types** - Enable/disable per post type
* **Link Locations** - Choose where duplicate links appear

= Compatibility =

Tested and compatible with:
* Elementor - Page builder
* Yoast SEO - SEO optimization
* WooCommerce - E-commerce
* Advanced Custom Fields - Custom fields
* Custom Post Type UI - Custom post types
* Gutenberg & Classic Editor

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/rathsh-duplicate-page` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Use the Settings > Duplicate Page screen to configure the plugin.
4. Start duplicating posts by clicking the "Rathsh Duplicate" links.

== How to Use ==

= For Administrators: =
1. Configure Settings: Go to Settings > Duplicate Page
2. Set Default Status: Choose what status duplicated posts should have
3. Select User Roles: Choose which roles can duplicate posts
4. Enable Post Types: Select which post types can be duplicated
5. Choose Link Locations: Decide where duplicate links should appear

= For Users: =
1. Navigate to Posts, Pages, or any enabled custom post type
2. Look for the "Rathsh Duplicate" link in your chosen locations
3. Click "Rathsh Duplicate" to create an instant copy
4. The duplicate will be created with your chosen default status

== Frequently Asked Questions ==

= Will this plugin conflict with other duplicate plugins? =

No, this plugin uses unique prefixes and doesn't override core WordPress functions.

= Can I duplicate posts with custom fields? =

Yes, all custom fields (meta data) are duplicated along with the post.

= What happens to SEO data when duplicating? =

SEO meta data is copied, but you should review and update it for the duplicate.

= Does this work with WooCommerce products? =

Yes, it works with any public post type including WooCommerce products.

= Can I change the duplicate link text? =

The link text is translatable through the plugin's text domain 'rathsh-duplicate-page'.

= What user roles can use this plugin? =

By default, Administrators and Editors can use it, but you can configure this in settings.

== Screenshots ==

1. Plugin settings page with all configuration options
2. Duplicate link in post row actions
3. Duplicate button in post edit screen
4. Admin bar duplicate link
5. Success message after duplication

== Changelog ==

= 1.0.0 =
* Initial release
* One-click duplication for posts, pages, and custom post types
* Role-based access control
* Flexible status options
* Multiple link placement locations
* Full sanitization and security implementation
* Conflict-free design with unique prefixes

== Upgrade Notice ==

= 1.0.0 =
Initial release with secure, conflict-free post duplication functionality. 