MenuItem Copy & Paste v1.0.7
MenuItem Copy & Paste v1.0.7
Easily copy, paste, clone, delete, and collapse menu items in the WordPress menu editor.
π₯ Download from WordPress.org | π Documentation | π Report Issues
β¨ Features
MenuItem Copy & Paste enhances the WordPress menu editing interface by adding six quick action buttons to each menu item, making menu management significantly more efficient.
- β 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
- Reorganizing large menus with many child items (collapse parents to focus on structure and drag siblings easily)
Additional 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
- Collapse state persisted per-menu in
localStorage(restored on page reload) - Auto-expand parent before drag to keep child items moving together
πΈ Screenshots
Five buttons added to the menu editing interface (New, Clone, Copy, Paste, Delete)
Visual highlight of copied menu items
Confirmation dialog when deleting
π₯ Installation
From WordPress.org (Recommended)
- Go to WordPress Admin β Plugins β Add New
- Search for "MenuItem Copy & Paste"
- Click "Install Now" and then "Activate"
- Go to Appearance β Menus to start using the new buttons
Manual Installation
- Download the latest release from the releases page
- Upload the plugin files to
/wp-content/plugins/menuitem-copy-paste/ - Activate the plugin through the 'Plugins' menu in WordPress
- Go to Appearance β Menus to start using the new buttons
From GitHub
cd /path/to/wordpress/wp-content/plugins/
git clone https://github.com/sarap422/wp-plugin-menuitem-copy-paste.git menuitem-copy-pasteThen activate the plugin through the WordPress admin panel.
π§ Requirements
- WordPress: 5.0 or higher
- PHP: 7.4 or higher
- Tested up to: WordPress 6.8
β Frequently Asked Questions
Which WordPress versions are supported?
WordPress 5.0 or higher. Tested up to the latest version (6.8).
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.
How does the Collapse feature work?
Parent menu items that contain child items get a β²/βΌ toggle button on the right end of the button group. Click it to fold or unfold all descendants. The collapsed state is saved per-menu in your browser's localStorage, so it persists across page reloads. Items without children do not show the toggle button.
Will collapsed items break drag & drop?
No. When you start dragging a collapsed parent, it auto-expands first so that its children move together with it. After the drag, the toggle button visibility is re-evaluated based on the new hierarchy.
π Changelog
1.0.7 (2026-05-20)
- β²βΌ Added Collapse feature: fold/unfold child menu items under any parent menu item
- πΎ Collapse state is persisted per-menu in
localStorageand 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 (2025-11-04)
- β 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
$_POSTvariable 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
π€ Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
π License
This project is licensed under the GPL v2 or later - see the LICENSE file for details.
π Links
- WordPress.org Plugin Page: https://wordpress.org/plugins/menuitem-copy-paste/
- Support Forum: https://wordpress.org/support/plugin/menuitem-copy-paste/
- GitHub Repository: https://github.com/sarap422/wp-plugin-menuitem-copy-paste
- Author: sarap422
π Support
If you find this plugin helpful, please:
- β Star this repository
- π Report issues
- π Write a review on WordPress.org
- π¬ Share with others who might find it useful
Made with β€οΈ by sarap422


