Title: NDT Duplicate
Author: Tony Nguyen
Published: <strong>2025 年 5 月 10 日</strong>
Last modified: 2025 年 8 月 10 日

---

搜索插件

![](https://ps.w.org/ndt-duplicate/assets/banner-772x250.jpg?rev=3291070)

![](https://ps.w.org/ndt-duplicate/assets/icon.svg?rev=3290974)

# NDT Duplicate

 作者：[Tony Nguyen](https://profiles.wordpress.org/nguyenduytan/)

[下载](https://downloads.wordpress.org/plugin/ndt-duplicate.1.0.2.zip)

 * [详情](https://cn.wordpress.org/plugins/ndt-duplicate/#description)
 * [评价](https://cn.wordpress.org/plugins/ndt-duplicate/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/ndt-duplicate/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/ndt-duplicate/#developers)

 [支持](https://wordpress.org/support/plugin/ndt-duplicate/)

## 描述

NDT Duplicate is a simple yet powerful plugin that enables administrators to clone
posts, pages, reusable blocks, or custom post types with just one click. It adds
a “Clone” (or custom text) link to the row actions in the WordPress admin, making
content duplication fast and efficient.

Key features include:

 * Adds a “Clone” link to row actions for selected post types.
 * Supports duplicating posts, pages, reusable blocks, and custom post types.
 * Administrators can enable/disable the plugin and configure settings.
 * Customizable “Allowed Types” (Page, Post, Blocks, Custom Type).
 * Restrict cloning to specific user roles (e.g., Administrators).
 * Option to set custom text for the clone link (default: “Clone”).
 * Choose whether cloned content is saved as a Draft or Published immediately.

Developed and maintained by Tony Nguyễn, this plugin is designed to streamline content
management workflows and will be supported as long as necessary.

### Support

For support, please contact me via:
 – Email: admin@ndtan.net – Telegram: @nguyenduytan–
Website: https://nguyenduytan.com

### License

This plugin is licensed under GPLv2 or later.

## 屏幕截图

 * [[
 * Admin settings page under **NDT Solutions > NDT Duplicate**.

## 安装

 1. Upload the `ndt-duplicate` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Go to **NDT Solutions > NDT Duplicate** in the admin dashboard to configure settings.

## 常见问题

### What does this plugin do?

NDT Duplicate adds a “Clone” link to the row actions in the WordPress admin, allowing
you to duplicate posts, pages, or custom post types with customizable settings.

### How do I configure the plugin?

After activation, go to **NDT Solutions > NDT Duplicate** in your WordPress admin
dashboard. You can enable/disable the plugin, select allowed post types, restrict
access to specific user roles, set the clone link text, and choose the status of
cloned content.

### Can I restrict who can use the clone feature?

Yes, in the settings under “Allowed Groups,” you can select which user roles (e.
g., Administrator, Editor) are permitted to see and use the “Clone” link.

### What happens after I clone a post?

The cloned post will be saved as either a “Draft” or “Published” based on your selection
in the “After Clone” setting. The title will have “(Clone)” appended, and all content,
meta, and taxonomies will be copied.

### Why don’t I see the “Clone” link?

Ensure the plugin is enabled and at least one “Allowed Type” is selected. Also, 
check if your user role is included in “Allowed Groups” in the settings.

### Does it work with custom post types?

Yes, if you enable the “Custom Type” option in “Allowed Types,” the plugin will 
add the “Clone” link to all custom post types except built-in ones like posts, pages,
and reusable blocks.

### How can I support the developer?

You can support the developer by donating via the PayPal.me link provided in the
plugin’s admin settings page under “About the Author”.

## 评价

此插件暂无评价。

## 贡献者及开发者

「NDT Duplicate」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Tony Nguyen ](https://profiles.wordpress.org/nguyenduytan/)

[帮助将「NDT Duplicate」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/ndt-duplicate)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/ndt-duplicate/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/ndt-duplicate/)，或通过[RSS](https://plugins.trac.wordpress.org/log/ndt-duplicate/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/ndt-duplicate/)。

## 更新日志

#### 1.0.2

 * Fixed redirect issue where cloning redirected to incorrect URL (e.g., edit.php#
   038;action=edit) instead of edit page.
 * Added Elementor-specific cache clearing for cloned templates.
 * Excluded sensitive meta keys (_edit_lock, _edit_last) from duplication.
 * Added debug log for redirect URL to aid troubleshooting.

#### 1.0.1

 * Fixed clone link not appearing for non-public post types with UI, such as reusable
   blocks (wp_block).
 * Optimized post type detection to use ‘show_ui’ => true for broader compatibility
   with custom post types.
 * Ensured correct redirect for all supported post types after duplication.
 * Updated “Tested up to” to WordPress 6.8.2.

#### 1.0.0

 * Initial release with full functionality:
    - Enable/disable plugin toggle.
    - Configurable allowed post types and user roles.
    - Customizable clone link text and post status after cloning.
    - Added “Clone” link to row actions in post/page lists.
 * Standardized admin menu under NDT Solutions for ecosystem compatibility.
 * Removed external SweetAlert2 and Google Fonts to comply with WordPress.org guidelines.
 * Improved security with proper escaping and sanitization.
 * Added full translation support with .pot and Vietnamese .po files.
 * Fixed readme.txt header formatting to comply with WordPress.org requirements.

## 额外信息

 *  版本 **1.0.2**
 *  最后更新：**10 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 4.9 或更高版本 **
 *  已测试的最高版本为 **6.8.5**
 *  PHP 版本 ** 7.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/ndt-duplicate/)
 * 标签
 * [clone](https://cn.wordpress.org/plugins/tags/clone/)[custom post type](https://cn.wordpress.org/plugins/tags/custom-post-type/)
   [duplicate](https://cn.wordpress.org/plugins/tags/duplicate/)[page](https://cn.wordpress.org/plugins/tags/page/)
   [post](https://cn.wordpress.org/plugins/tags/post/)
 *  [高级视图](https://cn.wordpress.org/plugins/ndt-duplicate/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/ndt-duplicate/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/ndt-duplicate/reviews/)

## 贡献者

 *   [ Tony Nguyen ](https://profiles.wordpress.org/nguyenduytan/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/ndt-duplicate/)