Linux 软件免费装
Banner图

Swift Menu Duplicator

开发者 mralaminahamed
更新时间 2026年4月20日 17:05
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

navigation menus duplicate copy menu manager

下载

1.0.0 1.0.1

详情介绍:

Swift Menu Duplicator gives you full control over your WordPress navigation menus. Clone any menu in one click, manage all menus from a dedicated admin page, version them with snapshots, move them across Multisite sub-sites, and automate everything from the command line or REST API.

安装:

  1. Upload the swift-menu-duplicator directory to /wp-content/plugins/.
  2. Activate the plugin through Plugins → Installed Plugins.
  3. Go to Appearance → Menus, select a menu, and click Duplicate Menu in the footer.
  4. For bulk management, snapshots, and import, visit Appearance → Menu Manager.

屏幕截图:

  • Menu Manager page — sortable list of all menus with bulk actions.
  • Snapshot panel in the menu editor — browse, restore, and delete revisions.
  • JSON import form with URL find & replace and dry-run preview.
  • WP-CLI `duplicate` and `export` commands in a terminal.

升级注意事项:

1.0.1 WP-CLI users: the command has been renamed from wp menu-duplicator to wp swift-menu-duplicator. Update any scripts or aliases accordingly. 1.0.0 Initial release — no upgrade steps required.

常见问题:

Does it copy theme location assignments?

No. Theme location assignments are site-specific and intentionally not copied, so the duplicate does not silently replace an active menu in any location.

What happens to sub-menu items?

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.

Can I rename the duplicate before it is created?

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.

Is it compatible with WPML or Polylang?

Yes. Translation and language meta keys are automatically stripped from duplicated items so the copy starts as a clean, language-neutral menu.

Is it compatible with WooCommerce / HPOS?

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.

Can I duplicate a menu that contains draft items?

Yes. All items are duplicated regardless of their post status.

How do I use the REST API?

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.

How do I migrate menus between environments?

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.

What capability is required?

edit_theme_options for all duplication, snapshot, export, and import actions. Multisite copy-to-site additionally requires manage_options on the target sub-site.

更新日志:

1.0.1 1.0.0