[WordPress] 外掛分享: Swift Menu Duplicator

首頁外掛目錄 › Swift Menu Duplicator
WordPress 外掛 Swift Menu Duplicator 的封面圖片
全新外掛
安裝啟用
尚無評分
41 天前
最後更新
問題解決
WordPress 6.0+ PHP 7.4+ v1.1.0 上架:2026-04-19

內容簡介

Swift Menu Duplicator 讓您全面掌控 WordPress 的導航選單,輕鬆一鍵複製選單,管理所有選單,並透過快照版本控制,支援多站點間的選單移動,並可透過命令列或 REST API 自動化操作。

【主要功能】
• 一鍵複製選單,無需重新載入頁面
• 自動快照,保存每次選單變更前的狀態
• 專屬選單管理頁面,便於管理所有選單
• 支援 JSON 匯出/匯入,方便選單移動
• 刪除安全性,提供可恢復的刪除功能

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Swift Menu Duplicator」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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.
One-Click Duplication

Duplicate button right in the menu editor footer — no page reload required
Full hierarchy preserved via a two-pass clone that remaps all parent-child item IDs
All item metadata copied — type, object, URL, target, CSS classes, XFN, description
Duplicate individual menu items directly from the menu editor
Custom name support — filter swift_menu_duplicator_new_menu_name to override the default “(Copy)” suffix

Snapshot Revisions

Auto-snapshot — a snapshot is saved automatically before every menu save
Manual snapshots — save named snapshots from the menu editor at any time
Browse & restore — view all snapshots in an expandable panel and restore with one click; the pre-restore state is snapshotted first
Housekeeping — delete individual snapshots you no longer need

Menu Manager (Appearance → Menu Manager)

Dedicated page listing every menu on the site in a sortable WP_List_Table
Bulk duplicate — clone multiple menus at once
Bulk export — download selected menus as a single ZIP archive
Bulk delete — remove multiple menus in one action
Row actions — duplicate or export individual menus directly from the list

JSON Export / Import

Export any menu to a portable JSON file (via admin or REST API)
Import from a JSON file upload or paste JSON directly into the text area
URL find & replace — swap domain names during import for staging → production migrations
Dry-run preview — review what will be imported before making any changes to the database

Deletion Safety

Deleting a menu — from the Menu Manager, the row action, or the Delete Menu button in the editor — captures it first
An Undo link appears while the deletion is still recoverable (one hour by default, filterable)
Restoring recreates the menu and its items and puts it back in the theme locations it occupied

Block Themes

Duplicate, export, and import the Navigation menus block themes actually render (wp_navigation posts), not just classic menus
A dedicated Navigation (Block) tab in the Menu Manager, with per-row Duplicate and Export JSON plus bulk duplicate and trash
Link counts per menu, and one-click access to the Site Editor
Available from WP-CLI and the REST API alongside the classic-menu commands

Multisite Support

Copy any menu to another site in your WordPress Multisite network
Optional URL find & replace applied to item URLs on the destination site

REST API
Full REST API at /wp-json/swift-menu-duplicator/v1/ for headless and block-editor integrations:

POST /menus/{id}/duplicate — duplicate a menu (optional name parameter)
GET /menus/{id}/export — export a menu as a JSON payload
POST /menus/{id}/items/{item_id}/duplicate — duplicate a single menu item
POST /menus/import — import a menu from an export payload
GET /menus/{id}/snapshots — list snapshots
POST /menus/{id}/snapshots — save a snapshot
POST /menus/{id}/snapshots/{snapshot_id} — restore a snapshot
DELETE /menus/{id}/snapshots/{snapshot_id} — delete a snapshot
GET /navigations — list block navigation menus
POST /navigations/{id}/duplicate — duplicate a block navigation menu
GET /navigations/{id}/export — export a block navigation menu
POST /navigations/import — import a block navigation menu

Permission is controlled by the swift_menu_duplicator_rest_permission filter (defaults to edit_theme_options).
WP-CLI
Full command-line support under the wp swift-menu-duplicator command group:

wp swift-menu-duplicator duplicate [--name=] — duplicate a menu
wp swift-menu-duplicator export [--output=] — export to JSON
wp swift-menu-duplicator import [--name=] [--find=] [--replace=] [--dry-run] [--porcelain] — import from JSON
wp swift-menu-duplicator copy-to-site --target-blog= [--name=] [--find=] [--replace=] — copy to a sub-site
wp swift-menu-duplicator snapshot list|save|restore|delete [--label=