marshallu/mu-duplicate-post
最新稳定版本:1.0.1
Composer 安装命令:
composer require marshallu/mu-duplicate-post
包简介
A lean WordPress plugin for duplicating any post type as a draft.
README 文档
README
A 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/mu-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
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-10