Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/marshallu/herd-duplicate-post/archive/refs/heads/main.zipOn Packagist as marshallu/mu-duplicate-post:
composer require marshallu/mu-duplicate-postA lean WordPress plugin for duplicating any post type as a draft. No settings pages, no bloat — just a single action that copies a post and drops you into the editor.
Features
- Adds a "Duplicate" row action to all post type list screens
- Adds a "Duplicate as Draft" button to the publish meta box on the edit screen
- Copies post content, excerpt, meta, and taxonomy terms
- Duplicate is always created as a draft assigned to the current user
- Respects post type capabilities — only users who can create posts of that type can duplicate them
Requirements
- PHP 8.3 or higher
- WordPress 6.0 or higher
Installation
Install via Composer:
composer require marshallu/herd-duplicate-post
Or download and place the plugin folder in your wp-content/plugins directory, then activate it from the WordPress admin.
Usage
On any post type list screen, hover over a row and click "Duplicate". The duplicate will be created as a draft and you will be redirected to the edit screen.
On the post edit screen, a "Duplicate as Draft" button appears in the publish meta box.
Development
composer install
composer run lint
composer run format
composer run analyse
License
MIT