Releases: sarap422/wp-plugin-menuitem-copy-paste
Release list
MenuItem Copy & Paste v1.1.3
MenuItem Copy & Paste v1.1.3
Copy, paste, clone, delete and collapse menu items, duplicate whole menus, export/import menus as JSON, and use shortcodes in menu items — all from the WordPress menu editor.
📥 Download from WordPress.org | 📖 Documentation | 🐛 Report Issues
✨ Features
Per-Item Buttons
Six quick action buttons are added to each menu item:
- ➕ New: Instantly create a new custom link below the selected item
- 📒 Clone: Duplicate the item immediately below itself
- 🔗 Copy: Copy item data to clipboard with visual highlight (blue background)
- 📋 Paste: Paste the copied item below any target item
- 🗑️ Delete: Remove the item without opening its accordion — with confirmation dialog
- ▲▼ Collapse: Fold/unfold all child items under a parent (state saved in
localStorage)
Menu-Level Tools
Controls added to the menu editor header:
- 🗂️ Duplicate Menu: Clone an entire menu (hierarchy preserved) with one click next to "Save Menu"; auto-named
{name}_copied - ⬇️ Export Menu: Download the selected menu as a JSON file (top-right "Export Menu")
- ⬆️ Import Menu: Rebuild a menu from a JSON file as a new menu (top-right "Import Menu"); pages and categories are re-resolved by slug on the target site — ideal for migrating template menus across sites
Shortcode Support
- 🧬 Shortcodes in menu item URL, navigation label, and description are executed on the front end — no extra metabox needed; theme-defined shortcodes are supported
📸 Screenshots
Six quick action buttons on each menu item (New / Clone / Copy / Paste / Delete / Collapse)
The copied item is highlighted in blue so you always know what's on the clipboard
A confirmation dialog prevents accidental deletions
The Collapse button folds all child items under a parent — great for navigating large menus
"Duplicate Menu" clones the entire hierarchy and names it {original}_copied automatically
"Export Menu" exports the current menu as a JSON file with one click
"Import Menu" opens a file picker to select a previously exported JSON file
The imported menu is created as a new menu with the full hierarchy restored
📥 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?
A confirmation dialog appears before deletion. Once deleted, items cannot be restored. However, if you haven't clicked "Save Menu" yet, you can reload the page to revert all unsaved changes.
Can I paste a copied item into a different menu?
Yes. Copy an item, switch to another menu, then click Paste on any item there.
What are the default values for items created with the New button?
Title: New Custom Link, URL: /. Edit them by opening the item's accordion after creation.
Can I copy child menu items?
The Copy and Clone buttons act on a single item only, excluding its children. To duplicate an entire menu with its hierarchy intact, use the Duplicate Menu button next to "Save Menu".
How does the Collapse button work?
Parent items that have children show a ▲/▼ toggle at the right end of the button group. Click it to fold or unfold all descendants. The collapsed state is saved per-menu in localStorage and restored on page reload. Items without children do not show the toggle.
Will collapsing items break drag & drop?
No. Dragging a collapsed parent auto-expands it first so its children move together. After the drag, the toggle visibility is re-evaluated based on the updated hierarchy.
How does Export / Import work?
Export: Click "Export Menu" (top-right of the menu editor) to download a JSON file of the current menu.
Import: Click "Import Menu", select a previously exported JSON file, and a new menu will be created. Pages and categories are re-resolved by slug on the target site, so the menu migrates correctly even across different WordPress installations.
How do shortcodes work in menu items?
Any shortcode in a menu item's URL, navigation label, or description is executed on the front end when the menu is rendered. No extra configuration is needed; just type the shortcode directly into the field.
📝 Changelog
1.1.3 (2026-06-01)
- 🛡️ Resilience: the plugin now verifies its required
includes/files exist before loading. If any are missing, it shows an admin notice and stops safely instead of causing a site-wide fatal error.
1.1.2 (2026-06-01)
- 🛠️ Packaging fix: the
includes/directory andjs/menuitem-menu-tools.jswere missing from the published WordPress.org package, causing a fatal error on activation. Re-published with the complete file set. No code changes.
1.1.1 (2026-05-28)
- 🧬 Added Shortcode support in menu item URL, navigation label, and description
- 🗂️ Added Duplicate Menu: clone an entire menu (hierarchy preserved); auto-named
{name}_copied - ⬇️ Added Export Menu: download the current menu as a JSON file
- ⬆️ Added Import Menu: rebuild a menu from JSON; pages/categories re-resolved by slug for cross-site migration
- 🏗️ Refactored into
includes/(bootstrap + item-actions / shortcode / tools / builder classes)
1.0.7 (2026-05-20)
- ▲▼ Added Collapse: fold/unfold child items under any parent
- 💾 Collapse state persisted per-menu in
localStorageand restored on page reload - 🧲 Auto-expand parent before drag so children move together
- 🎯 Toggle button auto-shows/hides based on whether the item has children
- 📐 Adjusted button container width to accommodate the sixth button
1.0.6 (2025-11-04)
- ➕ Added New: instantly create a custom link below the selected item
- 📒 Added Clone: duplicate the item immediately below
- 🗑️ Added Delete: remove items without opening the accordion
- 🎨 Added visual highlight (blue background) for copied items
- 🔒 Enhanced security: strengthened
$_POSTvariable validation - ✅ Improved code quality: compliance with WordPress Coding Standards
1.0.4
- Added accurate position calculation respecting 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/sarap...
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
menuitem-copy-paste v1.0.6
MenuItem Copy & Paste v1.0.6
🎉 Initial Public Release
This is the first public release of MenuItem Copy & Paste, now available on WordPress.org!
WordPress.org Plugin Page: https://wordpress.org/plugins/menuitem-copy-paste/
✨ 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
🔧 Technical Improvements
- Added proper prefixes to AJAX action names (
menucoam_*) - Enhanced security with strengthened
$_POSTvariable validation - Improved code quality: compliance with WordPress Coding Standards
- Comprehensive input validation and sanitization
- JSON data validation with size limits
📋 Requirements
- WordPress 5.0 or higher
- PHP 7.4 or higher
- Tested up to WordPress 6.8
🔗 Links
📥 Installation
From WordPress.org
- Go to WordPress Admin → Plugins → Add New
- Search for "MenuItem Copy & Paste"
- Click "Install Now" and then "Activate"
Manual Installation
- Download the plugin ZIP file from the Assets section below
- Go to WordPress Admin → Plugins → Add New → Upload Plugin
- Upload the ZIP file and activate the plugin
📸 Screenshots
See the WordPress.org plugin page for screenshots.
🐛 Known Issues
None reported. If you find any issues, please report them on the WordPress.org support forum.
Full Changelog: https://github.com/sarap422/wp-plugin-menuitem-copy-paste/commits/v1.0.6







