Quick Clone
One-click duplication utility for WordPress posts, pages, and custom post types
by Nitish Verma · github.com/imnitishverma/quick-clone · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/imnitishverma/quick-clone/archive/refs/heads/main.zip🚀 Quick Clone Wordpress Plugin
A simple, secure, one-click duplication utility for WordPress Posts, Pages, and Custom Post Types.
Developed by: Nitish Verma (https://help.nitishverma.com/)
🎯 Overview
The Quick Clone plugin significantly boosts content creation productivity by enabling users to create a perfect copy of any post type instantly. It adheres strictly to WordPress coding and security standards.
✨ Features
- Instant Duplication: Clones Posts, Pages, and all registered Custom Post Types via a single click in the list view.
- Comprehensive Cloning: Copies content, featured image, post status (to Draft), taxonomies (Categories/Tags), and all associated Post Meta (Custom Fields).
- Security Focused: Utilizes WordPress Nonce verification (
wp_verify_nonce) and capability checks (current_user_can) to ensure secure operation. - Lightweight: No separate admin screens or complex settings—it works directly via WordPress actions and filters.
🛠️ Installation and Setup (For Developers)
This repository contains the source code for the Quick Clone plugin.
1. Local Development Setup
- Clone the Repository:
git clone https://github.com/imnitishverma/quick-clone.git - Move to Plugins: Place the cloned
quick-clonefolder into your local WordPress installation'swp-content/plugins/directory. - Activate: Activate the plugin through the WordPress admin dashboard.
2. Usage
Once activated, navigate to the Posts or Pages list. Hover over any entry to reveal the "Duplicate" link. Clicking this link creates a new draft copy and redirects the user to the edit screen.
🔄 Contributing to Quick Clone
We welcome contributions from the community!
Reporting Issues
If you find a bug or have a feature suggestion, please open a new issue on the [Issues] tab of this repository.
Pull Requests
- Fork the repository.
- Create a new branch for your feature or fix (e.g.,
feature/add-settings-pageorfix/nonce-issue). - Implement your changes, adhering to the [WordPress Coding Standards].
- Test your changes thoroughly.
- Commit your changes with clear, descriptive messages (using prefixes like
feat:orfix:). - Submit a Pull Request to the
mainbranch of this repository.
Coding Standards
All PHP code must adhere to the [WordPress PHP Coding Standards] and utilize proper prefixing (qc_) for all functions, classes, and variables to prevent conflicts.
📝 Changelog
1.0.0
- Initial Stable Release.
- Core duplication logic for Posts, Pages, and Custom Post Types.
- Support for cloning all Post Meta and Taxonomies.
- Implementation of
wp_safe_redirectand input sanitization (sanitize_key) for security.
📜 License
This plugin is released under the GNU General Public License v2.0 or later.
- See the
LICENSEfile for more details.