| 开发者 | mralaminahamed |
|---|---|
| 更新时间 | 2026年4月20日 17:05 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
swift-menu-duplicator directory to /wp-content/plugins/.No. Theme location assignments are site-specific and intentionally not copied, so the duplicate does not silently replace an active menu in any location.
All parent-child relationships are preserved exactly. The plugin uses a two-pass approach: items are cloned first, then parent ID references are re-mapped to the newly created item IDs.
Yes. A name field is shown in the duplicate modal. You can also change the default suffix globally by filtering swift_menu_duplicator_new_menu_name.
Yes. Translation and language meta keys are automatically stripped from duplicated items so the copy starts as a clean, language-neutral menu.
Yes. The plugin only interacts with nav_menu_item posts and the nav_menu taxonomy. It has no dependency on WooCommerce or its High-Performance Order Storage.
Yes. All items are duplicated regardless of their post status.
Authenticate with a cookie session or an Application Password, then send:
POST /wp-json/cmd/v1/menus/{menu_id}/duplicate
The response includes the new menu's id, name, and edit_url.
Export the source menu to JSON (admin UI or wp swift-menu-duplicator export), transfer the file, then import it on the target site. Use the find/replace fields to rewrite domain-specific URLs during import.
edit_theme_options for all duplication, snapshot, export, and import actions. Multisite copy-to-site additionally requires manage_options on the target sub-site.
wp menu-duplicator to wp swift-menu-duplicator for consistency with the plugin slug.composer.lock was excluded by .gitignore glob pattern causing the SVN deploy workflow to fail./wp-json/cmd/v1/ — duplicate menu, export menu, duplicate item.wp swift-menu-duplicator — duplicate, export, import, copy-to-site.