Title: MenuItem Copy &amp; Paste
Author: sarap422
Published: <strong>2025 年 11 月 4 日</strong>
Last modified: 2026 年 6 月 1 日

---

搜索插件

![](https://s.w.org/plugins/geopattern-icon/menuitem-copy-paste.svg)

# MenuItem Copy & Paste

 作者：[sarap422](https://profiles.wordpress.org/sarap422/)

[下载](https://downloads.wordpress.org/plugin/menuitem-copy-paste.1.1.3.zip)

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

 [支持](https://wordpress.org/support/plugin/menuitem-copy-paste/)

## 描述

MenuItem Copy & Paste enhances the WordPress menu editing interface by adding five
quick action buttons to each menu item, making menu management significantly more
efficient.

#### Key Features

 * **➕ New**: Instantly create a new custom link below the selected menu item
 * **📒 Clone**: Duplicate a menu item immediately below itself
 * **🔗 Copy**: Copy menu item data to clipboard with visual highlight
 * **📋 Paste**: Paste copied items at the desired position
 * **🗑️ Delete**: Remove menu items without opening accordions
 * **▲▼ Collapse**: Fold/unfold child menu items under a parent (state saved in 
   localStorage)

#### Perfect For

 * Creating similar menu structures frequently
 * Managing large numbers of menu items efficiently
 * Quickly reorganizing menu layouts
 * Editing menus without accordion interactions

#### Features

 * Simple and intuitive UI
 * Delete items without page reload (with fade-out animation)
 * Support for all menu item types (pages, posts, custom links, taxonomies, etc.)
 * Accurate position calculation considering hierarchical structure
 * Preserves all metadata (URL, classes, attributes, etc.)
 * Uses WordPress standard Dashicons

### Support

If you have any issues or feature requests, please let us know in the plugin support
forum.

### Development

This plugin will also be available on GitHub. Contributions and issue reports are
welcome.

## 屏幕截图

[⌊Five buttons added to the menu editing interface (New, Clone, Copy, Paste, Delete)⌉⌊
Five buttons added to the menu editing interface (New, Clone, Copy, Paste, Delete
)⌉[

Five buttons added to the menu editing interface (New, Clone, Copy, Paste, Delete)

[⌊Visual highlight of copied menu items⌉⌊Visual highlight of copied menu items⌉[

Visual highlight of copied menu items

[⌊Confirmation dialog when deleting⌉⌊Confirmation dialog when deleting⌉[

Confirmation dialog when deleting

[[

[[

[[

[[

[[

## 安装

 1. Upload the plugin files to the `/wp-content/plugins/menuitem-copy-paste` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Go to Appearance  Menus and start using the new buttons

## 常见问题

### Which WordPress versions are supported?

WordPress 5.0 or higher. Tested up to the latest version (7.0).

### Can deleted items be restored?

When you click the delete button, a confirmation dialog appears. Once deleted, items
cannot be restored. However, if you don’t click “Save Menu” in WordPress, you can
reload the page to revert changes.

### Can I paste copied items to different menus?

Yes. After copying a menu item, you can switch to a different menu and paste it 
there.

### What are the default values for items created with the New button?

Title: “New Custom Link”, URL: “/”. You can edit these after creation by opening
the accordion.

### Can I copy child menu items?

The current version copies individual menu items only. The Clone button duplicates
only the selected item, excluding child hierarchies.

### What if the buttons don’t appear?

Clear your browser cache. If they still don’t appear, there may be a conflict with
other plugins. Try temporarily disabling other plugins to identify the issue.

## 评价

此插件暂无评价。

## 贡献者及开发者

「MenuItem Copy & Paste」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ sarap422 ](https://profiles.wordpress.org/sarap422/)

[帮助将「MenuItem Copy & Paste」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/menuitem-copy-paste)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.1.3

 * Resilience: the plugin now checks that its required `includes/` files exist before
   loading. If any are missing, it shows an admin notice and stops safely instead
   of triggering a site-wide fatal error.

#### 1.1.2

 * Packaging fix: the `includes/` directory (item-actions, shortcode, tools, builder
   classes) and `js/menuitem-menu-tools.js` were missing from the published package,
   causing a fatal error on activation (“require_once … class-menuitem-builder.php:
   No such file”). Re-published with the complete file set. No code changes.

#### 1.1.1

 * Updated “Tested up to” to WordPress 7.0
 * Security/coding-standards: made AJAX nonce verification explicit in each handler(
   menu duplicate/export/import) so it is visible to static analysis
 * Documented JSON request handling for the paste and import endpoints (validated
   via json_decode and sanitized per-field)

#### 1.1.0

 * Added Shortcode support: shortcodes now run in menu item URL, navigation label,
   and description (no extra metabox required; theme-defined shortcodes are executed)
 * Added Duplicate Menu: clone an entire menu (hierarchy preserved) from the editor,
   next to “Save Menu”; auto-named “{name}_copied”
 * Added per-menu JSON Export (“Export Menu” button, top-right of the menu editor)
 * Added JSON Import (“Import Menu” button): rebuilds a menu as a new menu; page/
   category items are re-resolved by slug on the target site, enabling cross-site
   migration of template menus

#### 1.0.7

 * Added Collapse feature: fold/unfold child menu items under any parent menu item
 * Collapse state is persisted per-menu in localStorage and restored on page reload
 * Auto-expansion before drag to safely move parents with their descendants
 * Toggle button auto-shows/hides based on whether the item has children
 * Adjusted button container width to accommodate the 6th button

#### 1.0.6

 * Added New feature: instantly create custom links below items
 * Added Clone feature: duplicate menu items immediately below
 * Added Delete feature: remove items without opening accordions
 * Added visual highlight (blue background) for copied items
 * Improved button tooltips with detailed descriptions
 * Enhanced security: strengthened $_POST variable validation
 * Improved code quality: compliance with WordPress Coding Standards

#### 1.0.4

 * Added accurate position calculation considering hierarchical structure
 * Implemented recursive descendant retrieval

#### 1.0.3

 * Initial release
 * Menu item copy & paste functionality

## 额外信息

 *  版本 **1.1.3**
 *  最后更新：**5 月前**
 *  活跃安装数量 **50+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **7.0.8**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/menuitem-copy-paste/)
 * 标签
 * [clone](https://cn.wordpress.org/plugins/tags/clone/)[copy](https://cn.wordpress.org/plugins/tags/copy/)
   [menu](https://cn.wordpress.org/plugins/tags/menu/)[navigation](https://cn.wordpress.org/plugins/tags/navigation/)
   [paste](https://cn.wordpress.org/plugins/tags/paste/)
 *  [高级视图](https://cn.wordpress.org/plugins/menuitem-copy-paste/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/menuitem-copy-paste/reviews/#new-post)

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

## 贡献者

 *   [ sarap422 ](https://profiles.wordpress.org/sarap422/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/menuitem-copy-paste/)